[llvm] 5db5b4b - [SCCP] Add missing change reporting

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 23 11:58:41 PDT 2020


Author: Nikita Popov
Date: 2020-07-23T20:58:29+02:00
New Revision: 5db5b4bc4394ca247c9eb665e03b851848aa2fbf

URL: https://github.com/llvm/llvm-project/commit/5db5b4bc4394ca247c9eb665e03b851848aa2fbf
DIFF: https://github.com/llvm/llvm-project/commit/5db5b4bc4394ca247c9eb665e03b851848aa2fbf.diff

LOG: [SCCP] Add missing change reporting

Forgot to actually use the return value of the function.

Added: 
    

Modified: 
    llvm/lib/Transforms/Scalar/SCCP.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/Scalar/SCCP.cpp b/llvm/lib/Transforms/Scalar/SCCP.cpp
index b76f67b19e0e..985e88dfa017 100644
--- a/llvm/lib/Transforms/Scalar/SCCP.cpp
+++ b/llvm/lib/Transforms/Scalar/SCCP.cpp
@@ -1965,7 +1965,7 @@ bool llvm::runIPSCCP(
                                             /*PreserveLCSSA=*/false, &DTU);
 
     for (BasicBlock &BB : F)
-      removeNonFeasibleEdges(Solver, &BB, DTU);
+      MadeChanges |= removeNonFeasibleEdges(Solver, &BB, DTU);
 
     for (BasicBlock *DeadBB : BlocksToErase)
       DTU.deleteBB(DeadBB);


        


More information about the llvm-commits mailing list