[llvm] 5d5b686 - [ARM] Fix Changed status in MVEGatherScatterLoweringPass.

David Green via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 10 13:53:20 PDT 2021


Author: David Green
Date: 2021-06-10T21:53:04+01:00
New Revision: 5d5b686f6bf6b15b8fbd9ccf957295397f27afc9

URL: https://github.com/llvm/llvm-project/commit/5d5b686f6bf6b15b8fbd9ccf957295397f27afc9
DIFF: https://github.com/llvm/llvm-project/commit/5d5b686f6bf6b15b8fbd9ccf957295397f27afc9.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 6188480e21d4..4c1d0ba63c4c 100644
--- a/llvm/lib/Target/ARM/MVEGatherScatterLowering.cpp
+++ b/llvm/lib/Target/ARM/MVEGatherScatterLowering.cpp
@@ -1167,7 +1167,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);


        


More information about the llvm-commits mailing list