NewGVN: Remove useless test in addPhiOfOps.
authorDaniel Berlin <dberlin@dberlin.org>
Thu, 29 Jun 2017 17:01:10 +0000 (17:01 +0000)
committerDaniel Berlin <dberlin@dberlin.org>
Thu, 29 Jun 2017 17:01:10 +0000 (17:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@306702 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/NewGVN.cpp

index 7a7624f775429e74f6e3a397119d35305c785d25..9cf01c6582b58eed4c2c7db40e244c1f2633556a 100644 (file)
@@ -2423,8 +2423,7 @@ void NewGVN::addPhiOfOps(PHINode *Op, BasicBlock *BB,
   AllTempInstructions.insert(Op);
   PHIOfOpsPHIs[BB].push_back(Op);
   TempToBlock[Op] = BB;
-  if (ExistingValue)
-    RealToTemp[ExistingValue] = Op;
+  RealToTemp[ExistingValue] = Op;
 }
 
 static bool okayForPHIOfOps(const Instruction *I) {