diff options
| author | Eric Christopher <echristo@apple.com> | 2011-04-19 18:49:19 +0000 |
|---|---|---|
| committer | Eric Christopher <echristo@apple.com> | 2011-04-19 18:49:19 +0000 |
| commit | c721b0db6d4e364a519d4efd6fdd9eea212f5f6d (patch) | |
| tree | 340a51f80389ff479fa604bc855d24009d354289 /llvm/lib/Target/ARM | |
| parent | 0fbb74406c9a255d2ae6034df7a8451268eb5ccf (diff) | |
| download | bcm5719-llvm-c721b0db6d4e364a519d4efd6fdd9eea212f5f6d.tar.gz bcm5719-llvm-c721b0db6d4e364a519d4efd6fdd9eea212f5f6d.zip | |
Remove some duplicate op action entries and reorganize.
llvm-svn: 129781
Diffstat (limited to 'llvm/lib/Target/ARM')
| -rw-r--r-- | llvm/lib/Target/ARM/ARMISelLowering.cpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/llvm/lib/Target/ARM/ARMISelLowering.cpp b/llvm/lib/Target/ARM/ARMISelLowering.cpp index 62d5b16a9dd..b1423914d57 100644 --- a/llvm/lib/Target/ARM/ARMISelLowering.cpp +++ b/llvm/lib/Target/ARM/ARMISelLowering.cpp @@ -511,18 +511,15 @@ ARMTargetLowering::ARMTargetLowering(TargetMachine &TM) } // i64 operation support. + setOperationAction(ISD::MUL, MVT::i64, Expand); + setOperationAction(ISD::MULHU, MVT::i32, Expand); if (Subtarget->isThumb1Only()) { - setOperationAction(ISD::MUL, MVT::i64, Expand); - setOperationAction(ISD::MULHU, MVT::i32, Expand); - setOperationAction(ISD::MULHS, MVT::i32, Expand); setOperationAction(ISD::UMUL_LOHI, MVT::i32, Expand); setOperationAction(ISD::SMUL_LOHI, MVT::i32, Expand); - } else { - setOperationAction(ISD::MUL, MVT::i64, Expand); - setOperationAction(ISD::MULHU, MVT::i32, Expand); - if (!Subtarget->hasV6Ops()) - setOperationAction(ISD::MULHS, MVT::i32, Expand); } + if (Subtarget->isThumb1Only() || !Subtarget->hasV6Ops()) + setOperationAction(ISD::MULHS, MVT::i32, Expand); + setOperationAction(ISD::SHL_PARTS, MVT::i32, Custom); setOperationAction(ISD::SRA_PARTS, MVT::i32, Custom); setOperationAction(ISD::SRL_PARTS, MVT::i32, Custom); |

