mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-07 17:18:32 +03:00
0606270cda
Do not run jump-threading for GPUs GPU targets have convergent operations that must not be duplicated or moved in or out of control-flow. An example convergent operation is a barrier/syncthreads. The only MIR pass affected by this is jump-threading, it can duplicate calls. Disable jump-hreading for GPU targets to prevent generating incorrect code. This affects the amdgpu and nvptx targets. Fixes rust-lang/rust#137086, see this issue for details. Tracking issue: rust-lang/rust#135024 cc @RDambrosio016 @kjetilkjeka for nvptx cc @ZuseZ4