diff options
| author | Evan Cheng <evan.cheng@apple.com> | 2009-03-09 19:15:00 +0000 |
|---|---|---|
| committer | Evan Cheng <evan.cheng@apple.com> | 2009-03-09 19:15:00 +0000 |
| commit | ce5dfb692a25c5e4f0172a6771683aa51444120c (patch) | |
| tree | b824f9db00d9b370b6d5b4c4e8179868fcea70b7 /llvm/lib/Target/ARM | |
| parent | fb8ded911ec8f04bace7dbab57e46c0f91707a5a (diff) | |
| download | bcm5719-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.cpp | 3 |
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; |

