[all-commits] [llvm/llvm-project] afd7db: [SimpleLoopUnswitch] Fix reversed branch during co...
Nikita Popov via All-commits
all-commits at lists.llvm.org
Wed Sep 20 01:48:23 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: afd7db48c55cb87566758e961f1ebac8af16b8bc
https://github.com/llvm/llvm-project/commit/afd7db48c55cb87566758e961f1ebac8af16b8bc
Author: Nikita Popov <npopov at redhat.com>
Date: 2023-09-20 (Wed, 20 Sep 2023)
Changed paths:
M llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp
M llvm/test/Transforms/SimpleLoopUnswitch/inject-invariant-conditions.ll
Log Message:
-----------
[SimpleLoopUnswitch] Fix reversed branch during condition injection
The in-loop successor is only on the left after a potential condition
inversion. As we re-use the old condition as-is, we should also
reuse the old successors as-is.
Fixes https://github.com/llvm/llvm-project/issues/63962.
More information about the All-commits
mailing list