[llvm] r348253 - [X86] Remove unnecessary peekThroughEXTRACT_SUBVECTORs call.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 4 04:21:44 PST 2018
Author: rksimon
Date: Tue Dec 4 04:21:43 2018
New Revision: 348253
URL: http://llvm.org/viewvc/llvm-project?rev=348253&view=rev
Log:
[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.
Modified:
llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=348253&r1=348252&r2=348253&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Tue Dec 4 04:21:43 2018
@@ -24092,8 +24092,6 @@ static SDValue LowerScalarVariableShift(
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();
More information about the llvm-commits
mailing list