mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-13 21:05:16 +00:00
When testing whether a given SCEV depends on a temporary symbolic
name, test whether the SCEV itself is that temporary symbolic name, in addition to checking whether the symbolic name appears as a possibly-indirect operand. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96216 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
da272d1a70
commit
50922bbe74
@ -2566,7 +2566,7 @@ ScalarEvolution::ForgetSymbolicName(Instruction *I, const SCEV *SymName) {
|
||||
if (It != Scalars.end()) {
|
||||
// Short-circuit the def-use traversal if the symbolic name
|
||||
// ceases to appear in expressions.
|
||||
if (!It->second->hasOperand(SymName))
|
||||
if (It->second != SymName && !It->second->hasOperand(SymName))
|
||||
continue;
|
||||
|
||||
// SCEVUnknown for a PHI either means that it has an unrecognized
|
||||
|
Loading…
Reference in New Issue
Block a user