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)
commit652952315135e18c02c164f72bcc8da03f27b75d
tree4a62053505bb80d5b6a4e8677dce177bd54a39f7
parent78f1ecc59c46a1668f79082f589737e4de952e78
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

llvm-svn: 235638
llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp
llvm/test/CodeGen/Thumb2/2011-06-07-TwoAddrEarlyClobber.ll
llvm/test/CodeGen/Thumb2/ifcvt-compare.ll [new file with mode: 0644]
llvm/test/CodeGen/Thumb2/v8_IT_3.ll