The block placement pass shouldn't run unless optimisations are enabled.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Yep, don't think it is useful or necessary to run this at O0.
LGTM.
llvm/lib/Target/ARM/ARMTargetMachine.cpp | ||
---|---|---|
555–556 | Nit: perhaps merge this with if below, and say something like: // Don't optimize barriers and block placement at -O0. |
Comment Actions
Should the pass itself call skipFunction in its runOnMachineFunction method? That's what handles skipping for optnone function and optbisect.
Nit: perhaps merge this with if below, and say something like: