summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMISelLowering.cpp
diff options
context:
space:
mode:
authorSam Parker <sam.parker@arm.com>2017-02-17 15:42:44 +0000
committerSam Parker <sam.parker@arm.com>2017-02-17 15:42:44 +0000
commit58af0c55d2b58742f1c0d7254ef6e1ddccdf471d (patch)
treec9fa5e5fedc4e49e703d7516cb79a3bc3de132b6 /llvm/lib/Target/ARM/ARMISelLowering.cpp
parent511d788a95750ad4f534bb0cdccf7a38526803bf (diff)
downloadbcm5719-llvm-58af0c55d2b58742f1c0d7254ef6e1ddccdf471d.tar.gz
bcm5719-llvm-58af0c55d2b58742f1c0d7254ef6e1ddccdf471d.zip
[ARM] Replace HasT2ExtractPack with HasDSP
Removed the HasT2ExtractPack feature and replaced its references with HasDSP. This then allows the Thumb2 extend instructions to be selected for ARMv8M +dsp. These instruction descriptions have also been refactored and more target tests have been added for their isel. Differential Revision: https://reviews.llvm.org/D29623 llvm-svn: 295452
Diffstat (limited to 'llvm/lib/Target/ARM/ARMISelLowering.cpp')
-rw-r--r--llvm/lib/Target/ARM/ARMISelLowering.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/ARM/ARMISelLowering.cpp b/llvm/lib/Target/ARM/ARMISelLowering.cpp
index 4af346087aa..3eed8495adf 100644
--- a/llvm/lib/Target/ARM/ARMISelLowering.cpp
+++ b/llvm/lib/Target/ARM/ARMISelLowering.cpp
@@ -10031,7 +10031,7 @@ static SDValue PerformORCombine(SDNode *N,
(Mask == ~Mask2)) {
// The pack halfword instruction works better for masks that fit it,
// so use that when it's available.
- if (Subtarget->hasT2ExtractPack() &&
+ if (Subtarget->hasDSP() &&
(Mask == 0xffff || Mask == 0xffff0000))
return SDValue();
// 2a
@@ -10047,7 +10047,7 @@ static SDValue PerformORCombine(SDNode *N,
(~Mask == Mask2)) {
// The pack halfword instruction works better for masks that fit it,
// so use that when it's available.
- if (Subtarget->hasT2ExtractPack() &&
+ if (Subtarget->hasDSP() &&
(Mask2 == 0xffff || Mask2 == 0xffff0000))
return SDValue();
// 2b
OpenPOWER on IntegriCloud