Enable generating legacy IT block for AArch32
authorWeiming Zhao <weimingz@codeaurora.org>
Wed, 13 Nov 2013 18:29:49 +0000 (18:29 +0000)
committerWeiming Zhao <weimingz@codeaurora.org>
Wed, 13 Nov 2013 18:29:49 +0000 (18:29 +0000)
commit929bdb23794b615dc6b0cc59db21f0450c3ce33b
tree97508fba5c848580476e3e9edfdc7cfd570ce52f
parente258845a63aa72c4a13f939af05a230f2720f637
Enable generating legacy IT block for AArch32

By default, the behavior of IT block generation will be determinated
dynamically base on the arch (armv8 vs armv7). This patch adds backend
options: -arm-restrict-it and -arm-no-restrict-it.  The former one
restricts the generation of IT blocks (the same behavior as thumbv8) for
both arches. The later one allows the generation of legacy IT block (the
same behavior as ARMv7 Thumb2) for both arches.

Clang will support -mrestrict-it and -mno-restrict-it, which is
compatible with GCC.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194592 91177308-0d34-0410-b5e6-96231b3b80d8
14 files changed:
lib/Target/ARM/ARMBaseInstrInfo.cpp
lib/Target/ARM/ARMSubtarget.cpp
lib/Target/ARM/ARMSubtarget.h
lib/Target/ARM/ARMTargetMachine.cpp
lib/Target/ARM/Thumb2ITBlockPass.cpp
test/CodeGen/ARM/2013-05-05-IfConvertBug.ll
test/CodeGen/Thumb2/thumb2-ifcvt1.ll
test/CodeGen/Thumb2/thumb2-ifcvt2.ll
test/CodeGen/Thumb2/thumb2-ifcvt3.ll
test/CodeGen/Thumb2/v8_IT_1.ll
test/CodeGen/Thumb2/v8_IT_2.ll
test/CodeGen/Thumb2/v8_IT_3.ll
test/CodeGen/Thumb2/v8_IT_4.ll
test/CodeGen/Thumb2/v8_IT_5.ll