]> granicus.if.org Git - llvm/commit
[ARM] Update check for CBZ in Ifcvt
authorDavid Green <david.green@arm.com>
Tue, 23 Apr 2019 12:11:26 +0000 (12:11 +0000)
committerDavid Green <david.green@arm.com>
Tue, 23 Apr 2019 12:11:26 +0000 (12:11 +0000)
commit9a2fa4a03337c08030f91e64b022fa33cdf8ad50
tree91848047ce7e8828eddfe035d12453c8deb4c602
parentdecd03f0859403d011a1d2a39394849aa4e8c027
[ARM] Update check for CBZ in Ifcvt

The check for creating CBZ in constant island pass recently obtained the
ability to search backwards to find a Cmp instruction. The code in IfCvt should
mirror this to allow more conversions to the smaller form. The common code has
been pulled out into a separate function to be shared between the two places.

Differential Revision: https://reviews.llvm.org/D60090

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@358977 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMBaseInstrInfo.cpp
lib/Target/ARM/ARMBaseInstrInfo.h
lib/Target/ARM/ARMConstantIslandPass.cpp
test/CodeGen/Thumb2/ifcvt-cbz.mir [new file with mode: 0644]