[llvm-branch-commits] [llvm] d29ae44 - [ARM] Fix Changed status in MVEGatherScatterLoweringPass.
Tom Stellard via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Fri Jun 25 20:21:07 PDT 2021
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);
More information about the llvm-branch-commits
mailing list