summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMISelLowering.cpp
diff options
context:
space:
mode:
authorRenato Golin <renato.golin@linaro.org>2017-08-22 11:02:37 +0000
committerRenato Golin <renato.golin@linaro.org>2017-08-22 11:02:37 +0000
commitf63d701669ebb6c40f2b4b23a1c4061daed2d500 (patch)
tree110e4724af73b79f801e558645b96a247acb67eb /llvm/lib/Target/ARM/ARMISelLowering.cpp
parentaa603c3bef06a5779619d2e3138c46e3037f0d67 (diff)
downloadbcm5719-llvm-f63d701669ebb6c40f2b4b23a1c4061daed2d500.tar.gz
bcm5719-llvm-f63d701669ebb6c40f2b4b23a1c4061daed2d500.zip
[ARM] Call setBooleanContents(ZeroOrOneBooleanContent)
The ARM backend should call setBooleanContents so that it can use known bits to make some optimizations. Review: D35821 Patch by Joel Galenson <jgalenson@google.com> llvm-svn: 311446
Diffstat (limited to 'llvm/lib/Target/ARM/ARMISelLowering.cpp')
-rw-r--r--llvm/lib/Target/ARM/ARMISelLowering.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/ARMISelLowering.cpp b/llvm/lib/Target/ARM/ARMISelLowering.cpp
index 0d4d847ef10..03d0b7e2a74 100644
--- a/llvm/lib/Target/ARM/ARMISelLowering.cpp
+++ b/llvm/lib/Target/ARM/ARMISelLowering.cpp
@@ -221,6 +221,7 @@ ARMTargetLowering::ARMTargetLowering(const TargetMachine &TM,
RegInfo = Subtarget->getRegisterInfo();
Itins = Subtarget->getInstrItineraryData();
+ setBooleanContents(ZeroOrOneBooleanContent);
setBooleanVectorContents(ZeroOrNegativeOneBooleanContent);
if (!Subtarget->isTargetDarwin() && !Subtarget->isTargetIOS() &&
OpenPOWER on IntegriCloud