[Target/ARM] Only enable OptimizeBarrierPass at -O1 and above.
authorDavide Italiano <davide@freebsd.org>
Wed, 20 May 2015 21:40:38 +0000 (21:40 +0000)
committerDavide Italiano <davide@freebsd.org>
Wed, 20 May 2015 21:40:38 +0000 (21:40 +0000)
commite677c7bd2284caba8d8b79d738107d7fbde6097d
treea4158c6cad33821f1b336bfdd1055beae853431a
parentb753a30d3ba5758f387f9bcd5ed3a12de1ea85f8
[Target/ARM] Only enable OptimizeBarrierPass at -O1 and above.

Ideally this is going to be and LLVM IR pass (shared, among others
with AArch64), but for the time being just enable it if consumers
ask us for optimization and not unconditionally.

Discussed with Tim Northover on IRC.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237837 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMTargetMachine.cpp
test/CodeGen/ARM/noopt-dmb-v7.ll [new file with mode: 0644]
test/CodeGen/ARM/optimize-dmbs-v7.ll