summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2018-12-04 12:21:43 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2018-12-04 12:21:43 +0000
commitb1d6db7693b65dfe5040fc424e10e008afc7bb6c (patch)
tree9fa08ff79acd111c4944445c8206d886795e8e92 /llvm/lib
parent219c0fae5c4ad8f26557518e5315fb3fa44d0f7c (diff)
downloadbcm5719-llvm-b1d6db7693b65dfe5040fc424e10e008afc7bb6c.tar.gz
bcm5719-llvm-b1d6db7693b65dfe5040fc424e10e008afc7bb6c.zip
[X86] Remove unnecessary peekThroughEXTRACT_SUBVECTORs call.
The GetSplatValue/IsSplatVector call will call this anyhow and the later code is just for a v2i64 type so doesn't need it. llvm-svn: 348253
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/X86/X86ISelLowering.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp
index 809c5a149a0..bd069534901 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -24092,8 +24092,6 @@ static SDValue LowerScalarVariableShift(SDValue Op, SelectionDAG &DAG,
unsigned X86OpcI = getTargetVShiftUniformOpcode(Opcode, false);
unsigned X86OpcV = getTargetVShiftUniformOpcode(Opcode, true);
- Amt = peekThroughEXTRACT_SUBVECTORs(Amt);
-
if (SDValue BaseShAmt = GetSplatValue(Amt, dl, DAG)) {
if (SupportedVectorShiftWithBaseAmnt(VT, Subtarget, Opcode)) {
MVT EltVT = VT.getVectorElementType();
OpenPOWER on IntegriCloud