We do this for conditional branches, but not for guards for some reason.
Fixes assertion crash in https://github.com/llvm/llvm-project/issues/58666.
Paths
| Differential D137249
[SimpleLoopUnswitch] Skip trivial selects when adding guards conditions to unswitch candidates ClosedPublic Authored by dmakogon on Nov 2 2022, 6:15 AM.
Details Summary We do this for conditional branches, but not for guards for some reason. Fixes assertion crash in https://github.com/llvm/llvm-project/issues/58666.
Diff Detail
Event Timelinedmakogon retitled this revision from [SimpleLoopUnswitch] Skip trivial selects when adding guards conditions as unswitch candidates to [SimpleLoopUnswitch] Skip trivial selects when adding guards conditions to unswitch candidates.Nov 3 2022, 3:32 AM This revision is now accepted and ready to land.Nov 3 2022, 12:12 PM Closed by commit rGebac59999f92: [SimpleLoopUnswitch] Skip trivial selects in guards conditions unswitch… (authored by dmakogon). · Explain WhyNov 7 2022, 11:05 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 473883 llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp
llvm/test/Transforms/SimpleLoopUnswitch/nontrivial-unswitch-skip-selects-in-guards.ll
|