diff --git a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp --- a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp +++ b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp @@ -2645,7 +2645,7 @@ } // Quit if we can't remove this instruction. if (!tryCSEWithPredecessor(Curr, PB)) - return false; + return Changed; Changed = true; } }