Author: David Green
Date: 2021-06-25T20:20:29-07:00
New Revision: d29ae443aa4028ca9cc274cd1496f7d80f34a38a

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

LOG: [ARM] Fix Changed status in MVEGatherScatterLoweringPass.

Now that we are calling SimplifyInstructionsInBlock, make sure we update
Changed when it reports alterations.

Added: 
    

Modified: 
    llvm/lib/Target/ARM/MVEGatherScatterLowering.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/ARM/MVEGatherScatterLowering.cpp 
b/llvm/lib/Target/ARM/MVEGatherScatterLowering.cpp
index 195622cfd586..56823735e2d9 100644
--- a/llvm/lib/Target/ARM/MVEGatherScatterLowering.cpp
+++ b/llvm/lib/Target/ARM/MVEGatherScatterLowering.cpp
@@ -1166,7 +1166,7 @@ bool MVEGatherScatterLowering::runOnFunction(Function &F) 
{
   bool Changed = false;
 
   for (BasicBlock &BB : F) {
-    SimplifyInstructionsInBlock(&BB);
+    Changed |= SimplifyInstructionsInBlock(&BB);
 
     for (Instruction &I : BB) {
       IntrinsicInst *II = dyn_cast<IntrinsicInst>(&I);


        
_______________________________________________
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to