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)
commit23b404d5adfe961de1a2c6d4de6324244846afd2
tree91d2435ebc0823bc19a4871d42b91d42be6de1cf
parent03b913d53941f5daa2ddd50f6f9859e669581686
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.

llvm-svn: 170462
llvm/lib/Target/ARM/Thumb2SizeReduction.cpp
llvm/test/CodeGen/ARM/avoid-cpsr-rmw.ll