OSDN Git Service

NewGVN: This is wrong by inspection, it will not cause an issue currently due to...
authorDaniel Berlin <dberlin@dberlin.org>
Wed, 14 Jun 2017 21:19:28 +0000 (21:19 +0000)
committerDaniel Berlin <dberlin@dberlin.org>
Wed, 14 Jun 2017 21:19:28 +0000 (21:19 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@305415 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/NewGVN.cpp

index 8fe398d..cbbd555 100644 (file)
@@ -2195,7 +2195,7 @@ void NewGVN::moveValueToNewCongruenceClass(Instruction *I, const Expression *E,
 // For a given expression, mark the phi of ops instructions that could have
 // changed as a result.
 void NewGVN::markPhiOfOpsChanged(const Expression *E) {
-  touchAndErase(ExpressionToPhiOfOps, E);
+  touchAndErase(ExpressionToPhiOfOps, ExactEqualsExpression(*E));
 }
 
 // Perform congruence finding on a given value numbering expression.