mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-03 13:31:05 +00:00
When disabling PRE for a value is directly redundant with itself
(through a loop), don't continue to iterate through the reamining predecessors. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174994 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b97c14b68f
commit
8c0d29fee9
@ -2455,7 +2455,9 @@ bool GVN::performPRE(Function &F) {
|
||||
PREPred = P;
|
||||
++NumWithout;
|
||||
} else if (predV == CurInst) {
|
||||
/* CurInst dominates this predecessor. */
|
||||
NumWithout = 2;
|
||||
break;
|
||||
} else {
|
||||
predMap[P] = predV;
|
||||
++NumWith;
|
||||
|
Loading…
Reference in New Issue
Block a user