Thumb2: When optimizing for size, do not if-convert branches involving comparisons...
authorPeter Collingbourne <peter@pcc.me.uk>
Thu, 23 Apr 2015 20:31:30 +0000 (20:31 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Thu, 23 Apr 2015 20:31:30 +0000 (20:31 +0000)
commitd9a479e5a0364ffd04b9ff2af3d2baaa4cd27a6d
tree2b10fa58614b009fa61bea9a169ff9ae0c0513ed
parentf86c29ea2c0321aa4dcad42c83ff7f09bab1b7d8
Thumb2: When optimizing for size, do not if-convert branches involving comparisons with zero.

This allows the constant island pass to lower these branches to cbn?z
instructions, resulting in a shorter instruction sequence.

Differential Revision: http://reviews.llvm.org/D9183

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235638 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMBaseInstrInfo.cpp
test/CodeGen/Thumb2/2011-06-07-TwoAddrEarlyClobber.ll
test/CodeGen/Thumb2/ifcvt-compare.ll [new file with mode: 0644]
test/CodeGen/Thumb2/v8_IT_3.ll