[llvm] r325368 - [X86] Remove call to ShrinkDemandedCosntant from the SHRUNKBLEND creation code.
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 16 10:34:46 PST 2018
Author: ctopper
Date: Fri Feb 16 10:34:46 2018
New Revision: 325368
URL: http://llvm.org/viewvc/llvm-project?rev=325368&view=rev
Log:
[X86] Remove call to ShrinkDemandedCosntant from the SHRUNKBLEND creation code.
We only run this code if know the condition isn't a constant vector. ShrinkDemandedConstant isn't going to find any different.
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=325368&r1=325367&r2=325368&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Fri Feb 16 10:34:46 2018
@@ -31861,8 +31861,7 @@ static SDValue combineSelect(SDNode *N,
KnownBits Known;
TargetLowering::TargetLoweringOpt TLO(DAG, !DCI.isBeforeLegalize(),
!DCI.isBeforeLegalizeOps());
- if (TLI.ShrinkDemandedConstant(Cond, DemandedMask, TLO) ||
- TLI.SimplifyDemandedBits(Cond, DemandedMask, Known, TLO)) {
+ if (TLI.SimplifyDemandedBits(Cond, DemandedMask, Known, TLO)) {
// If we changed the computation somewhere in the DAG, this change will
// affect all users of Cond. Make sure it is fine and update all the nodes
// so that we do not use the generic VSELECT anymore. Otherwise, we may
More information about the llvm-commits
mailing list