Commit 773f136
[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 #63962.
(cherry picked from commit afd7db4)1 parent 4362f3e commit 773f136
File tree
2 files changed
+3
-3
lines changed- llvm
- lib/Transforms/Scalar
- test/Transforms/SimpleLoopUnswitch
2 files changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3060 | 3060 | | |
3061 | 3061 | | |
3062 | 3062 | | |
3063 | | - | |
3064 | 3063 | | |
3065 | 3064 | | |
3066 | 3065 | | |
| |||
3069 | 3068 | | |
3070 | 3069 | | |
3071 | 3070 | | |
3072 | | - | |
| 3071 | + | |
| 3072 | + | |
3073 | 3073 | | |
3074 | 3074 | | |
3075 | 3075 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
465 | 465 | | |
466 | 466 | | |
467 | 467 | | |
468 | | - | |
| 468 | + | |
469 | 469 | | |
470 | 470 | | |
471 | 471 | | |
| |||
0 commit comments