diff --git a/llvm/lib/Transforms/Scalar/NewGVN.cpp b/llvm/lib/Transforms/Scalar/NewGVN.cpp index bf72a6465f8b..a1aa55d217d6 100644 --- a/llvm/lib/Transforms/Scalar/NewGVN.cpp +++ b/llvm/lib/Transforms/Scalar/NewGVN.cpp @@ -955,8 +955,6 @@ const Expression *NewGVN::performSymbolicEvaluation(Value *V, return nullptr; } } - if (!E) - return nullptr; return E; }