[llvm] r325101 - [SelectionDAG] Remove duplicate code from TargetLowering::SimplifySetCC.
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 13 22:51:58 PST 2018
Author: ctopper
Date: Tue Feb 13 22:51:57 2018
New Revision: 325101
URL: http://llvm.org/viewvc/llvm-project?rev=325101&view=rev
Log:
[SelectionDAG] Remove duplicate code from TargetLowering::SimplifySetCC.
This exact code already exists a little further up.
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/TargetLowering.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/TargetLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/TargetLowering.cpp?rev=325101&r1=325100&r2=325101&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/TargetLowering.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/TargetLowering.cpp Tue Feb 13 22:51:57 2018
@@ -1908,12 +1908,8 @@ SDValue TargetLowering::SimplifySetCC(EV
if ((Cond == ISD::SETLT || Cond == ISD::SETULT) && C1 == MinVal)
return DAG.getBoolConstant(false, dl, VT, OpVT); // X < MIN --> false
- if ((Cond == ISD::SETGE || Cond == ISD::SETUGE) && C1 == MinVal)
- return DAG.getBoolConstant(true, dl, VT, OpVT); // X >= MIN --> true
if ((Cond == ISD::SETGT || Cond == ISD::SETUGT) && C1 == MaxVal)
return DAG.getBoolConstant(false, dl, VT, OpVT); // X > MAX --> false
- if ((Cond == ISD::SETLE || Cond == ISD::SETULE) && C1 == MaxVal)
- return DAG.getBoolConstant(true, dl, VT, OpVT); // X <= MAX --> true
// Canonicalize setgt X, Min --> setne X, Min
if ((Cond == ISD::SETGT || Cond == ISD::SETUGT) && C1 == MinVal)
More information about the llvm-commits
mailing list