diff options
author | Craig Topper <craig.topper@intel.com> | 2018-02-16 18:34:46 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@intel.com> | 2018-02-16 18:34:46 +0000 |
commit | 79bd39db8098b4092b83931b1ee2cb58dc30499c (patch) | |
tree | aa1016dcc0bdea707ef2e35f29703634019614ec | |
parent | b7a5469c7eb9980ba22b6f43459b8fb42a7ba6e3 (diff) | |
download | bcm5719-llvm-79bd39db8098b4092b83931b1ee2cb58dc30499c.tar.gz bcm5719-llvm-79bd39db8098b4092b83931b1ee2cb58dc30499c.zip |
[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.
llvm-svn: 325368
-rw-r--r-- | llvm/lib/Target/X86/X86ISelLowering.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp index d90b1397074..7fd196ef24b 100644 --- a/llvm/lib/Target/X86/X86ISelLowering.cpp +++ b/llvm/lib/Target/X86/X86ISelLowering.cpp @@ -31861,8 +31861,7 @@ static SDValue combineSelect(SDNode *N, SelectionDAG &DAG, 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 |