Skip to content

Commit d29ae44

Browse files
davemgreentstellar
authored andcommitted
[ARM] Fix Changed status in MVEGatherScatterLoweringPass.
Now that we are calling SimplifyInstructionsInBlock, make sure we update Changed when it reports alterations.
1 parent f83afe6 commit d29ae44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: llvm/lib/Target/ARM/MVEGatherScatterLowering.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1166,7 +1166,7 @@ bool MVEGatherScatterLowering::runOnFunction(Function &F) {
11661166
bool Changed = false;
11671167

11681168
for (BasicBlock &BB : F) {
1169-
SimplifyInstructionsInBlock(&BB);
1169+
Changed |= SimplifyInstructionsInBlock(&BB);
11701170

11711171
for (Instruction &I : BB) {
11721172
IntrinsicInst *II = dyn_cast<IntrinsicInst>(&I);

0 commit comments

Comments
 (0)