summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-03-09 19:15:00 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-03-09 19:15:00 +0000
commitce5dfb692a25c5e4f0172a6771683aa51444120c (patch)
treeb824f9db00d9b370b6d5b4c4e8179868fcea70b7 /llvm/lib/Target/ARM
parentfb8ded911ec8f04bace7dbab57e46c0f91707a5a (diff)
downloadbcm5719-llvm-ce5dfb692a25c5e4f0172a6771683aa51444120c.tar.gz
bcm5719-llvm-ce5dfb692a25c5e4f0172a6771683aa51444120c.zip
ARM isLegalAddressImmediate should check if type is a simple type now that optimizer can create values of funky scalar types.
llvm-svn: 66429
Diffstat (limited to 'llvm/lib/Target/ARM')
-rw-r--r--llvm/lib/Target/ARM/ARMISelLowering.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/ARMISelLowering.cpp b/llvm/lib/Target/ARM/ARMISelLowering.cpp
index cc38efb9ccc..a6674b2916e 100644
--- a/llvm/lib/Target/ARM/ARMISelLowering.cpp
+++ b/llvm/lib/Target/ARM/ARMISelLowering.cpp
@@ -1591,6 +1591,9 @@ static bool isLegalAddressImmediate(int64_t V, MVT VT,
if (V == 0)
return true;
+ if (!VT.isSimple())
+ return false;
+
if (Subtarget->isThumb()) {
if (V < 0)
return false;
OpenPOWER on IntegriCloud