diff options
author | David Green <david.green@arm.com> | 2021-06-10 21:53:04 +0100 |
---|---|---|
committer | Tom Stellard <tstellar@redhat.com> | 2021-06-25 20:20:29 -0700 |
commit | d29ae443aa4028ca9cc274cd1496f7d80f34a38a (patch) | |
tree | b2823153245617e554c860afe73174327ca6be34 | |
parent | f83afe6ae9613512bd8f30090d8c287292b55dcd (diff) |
[ARM] Fix Changed status in MVEGatherScatterLoweringPass.
Now that we are calling SimplifyInstructionsInBlock, make sure we update
Changed when it reports alterations.
-rw-r--r-- | llvm/lib/Target/ARM/MVEGatherScatterLowering.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); |