[ARM] Don't run the block placement pass at O0
authorSam Tebbs <samuel.tebbs@arm.com>
Fri, 15 Jan 2021 11:42:44 +0000 (11:42 +0000)
committerSam Tebbs <samuel.tebbs@arm.com>
Fri, 15 Jan 2021 13:59:29 +0000 (13:59 +0000)
commit5e4480b6c0f02beef5ca7f62c3427031872fcd52
tree8407dbdc28d6a28f65db0e5f3b28e7e2344cc2d6
parente9f1ed2306b1b3aedcb1acef2b50e252a77a04b9
[ARM] Don't run the block placement pass at O0

The block placement pass shouldn't run unless optimisations are enabled.

Differential Revision: https://reviews.llvm.org/D94691
llvm/lib/Target/ARM/ARMBlockPlacement.cpp
llvm/lib/Target/ARM/ARMTargetMachine.cpp