diff options
author | Evan Cheng <evan.cheng@apple.com> | 2010-04-15 22:20:34 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2010-04-15 22:20:34 +0000 |
commit | f7f97b4bbdf0cff78d95886953851aa17b64eb7b (patch) | |
tree | 59483cf16917401b6b560651b6c71ee72ae079ca /llvm/lib/Target/ARM/ARMISelLowering.cpp | |
parent | 9c1172d848bac48a0d2f96d60a8f008f6d8c5994 (diff) | |
download | bcm5719-llvm-f7f97b4bbdf0cff78d95886953851aa17b64eb7b.tar.gz bcm5719-llvm-f7f97b4bbdf0cff78d95886953851aa17b64eb7b.zip |
Use default lowering of DYNAMIC_STACKALLOC. As far as I can tell, ARM isle is doing the right thing and codegen looks correct for both Thumb and Thumb2.
llvm-svn: 101410
Diffstat (limited to 'llvm/lib/Target/ARM/ARMISelLowering.cpp')
-rw-r--r-- | llvm/lib/Target/ARM/ARMISelLowering.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/lib/Target/ARM/ARMISelLowering.cpp b/llvm/lib/Target/ARM/ARMISelLowering.cpp index 08e8010a43e..f2d81755f46 100644 --- a/llvm/lib/Target/ARM/ARMISelLowering.cpp +++ b/llvm/lib/Target/ARM/ARMISelLowering.cpp @@ -384,10 +384,7 @@ ARMTargetLowering::ARMTargetLowering(TargetMachine &TM) // FIXME: Shouldn't need this, since no register is used, but the legalizer // doesn't yet know how to not do that for SjLj. setExceptionSelectorRegister(ARM::R0); - if (Subtarget->isThumb()) - setOperationAction(ISD::DYNAMIC_STACKALLOC, MVT::i32, Custom); - else - setOperationAction(ISD::DYNAMIC_STACKALLOC, MVT::i32, Expand); + setOperationAction(ISD::DYNAMIC_STACKALLOC, MVT::i32, Expand); setOperationAction(ISD::MEMBARRIER, MVT::Other, Custom); if (!Subtarget->hasV6Ops() && !Subtarget->isThumb2()) { |