[all-commits] [llvm/llvm-project] f96aa4: [SimpleLoopUnswitch] Always skip trivial select an...
Florian Hahn via All-commits
all-commits at lists.llvm.org
Thu May 26 01:47:00 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f96aa493f0459d16a81e76c9d4f2915057cbcf7a
https://github.com/llvm/llvm-project/commit/f96aa493f0459d16a81e76c9d4f2915057cbcf7a
Author: Florian Hahn <flo at fhahn.com>
Date: 2022-05-26 (Thu, 26 May 2022)
Changed paths:
M llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp
M llvm/test/Transforms/SimpleLoopUnswitch/nontrivial-unswitch-trivial-select.ll
Log Message:
-----------
[SimpleLoopUnswitch] Always skip trivial select and set condition.
When updating the branch instruction outside the loopduring non-trivial
unswitching, always skip trivial selects and update the condition.
Otherwise we might create invalid IR, because the trivial select is
inside the loop, while the condition is outside the loop.
Fixes #55697.
More information about the All-commits
mailing list