Disable ARM partial flag dependency optimization at -Oz
authorQuentin Colombet <qcolombet@apple.com>
Tue, 18 Dec 2012 22:47:16 +0000 (22:47 +0000)
committerQuentin Colombet <qcolombet@apple.com>
Tue, 18 Dec 2012 22:47:16 +0000 (22:47 +0000)
commitb519351b87204966d6548b198b88f2ab0f4d0b4b
tree7827db8d28c1736c13627222a6c624f7dc1e96d1
parentbd7b36e780f99b808f8e334e26f3dae1bc7e8175
Disable ARM partial flag dependency optimization at -Oz

To not over constrain the scheduler for ARM in thumb mode, some optimizations  for code size reduction, specific to ARM thumb, are blocked when they add a dependency (like write after read dependency).

Disables this check when code size is the priority, i.e., code is compiled with -Oz.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170462 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/Thumb2SizeReduction.cpp
test/CodeGen/ARM/avoid-cpsr-rmw.ll