]> granicus.if.org Git - llvm/commitdiff
NewGVN: Fix missed call that should be to shouldSwapOperands
authorDaniel Berlin <dberlin@dberlin.org>
Sun, 12 Feb 2017 22:02:47 +0000 (22:02 +0000)
committerDaniel Berlin <dberlin@dberlin.org>
Sun, 12 Feb 2017 22:02:47 +0000 (22:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@294920 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/NewGVN.cpp

index d95768216eb7ff63fe0433dd1d5ca18d70839901..38e4a30e4967231d38defe0724644014907ab8e4 100644 (file)
@@ -2425,7 +2425,6 @@ bool NewGVN::eliminateInstructions(Function &F) {
 // we will simplify an operation with all constants so that it doesn't matter
 // what order they appear in.
 unsigned int NewGVN::getRank(const Value *V) const {
-  assert(V && "What?");
   if (isa<Constant>(V))
     return 0;
   else if (auto *A = dyn_cast<Argument>(V))