[PATCH] D94691: [ARM] Don't run the block placement pass at O0
Sam Tebbs via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 14 08:28:09 PST 2021
samtebbs updated this revision to Diff 316671.
samtebbs added a comment.
Merge with if statement below
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D94691/new/
https://reviews.llvm.org/D94691
Files:
llvm/lib/Target/ARM/ARMTargetMachine.cpp
Index: llvm/lib/Target/ARM/ARMTargetMachine.cpp
===================================================================
--- llvm/lib/Target/ARM/ARMTargetMachine.cpp
+++ llvm/lib/Target/ARM/ARMTargetMachine.cpp
@@ -553,11 +553,11 @@
return MF.getSubtarget<ARMSubtarget>().isThumb2();
}));
- addPass(createARMBlockPlacementPass());
-
- // Don't optimize barriers at -O0.
- if (getOptLevel() != CodeGenOpt::None)
+ // Don't optimize barriers or block placement at -O0.
+ if (getOptLevel() != CodeGenOpt::None) {
addPass(createARMOptimizeBarriersPass());
+ addPass(createARMBlockPlacementPass());
+ }
}
void ARMPassConfig::addPreEmitPass2() {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D94691.316671.patch
Type: text/x-patch
Size: 663 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210114/2cc391dc/attachment.bin>
More information about the llvm-commits
mailing list