Skip to content

Commit b8dc54c

Browse files
author
Justin Hibbits
committed
PowerPC: Remove redundancy in ternary for predicate selection
rG2c4620ad57b8 inadvertently added redundancies in selection of GT and LE predicates for SPE. Correct this. Partially addresses PR 44768.
1 parent 95c95a9 commit b8dc54c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3872,10 +3872,10 @@ static PPC::Predicate getPredicateForSetCC(ISD::CondCode CC, const EVT &VT,
38723872
return UseSPE ? PPC::PRED_GT : PPC::PRED_LT;
38733873
case ISD::SETULE:
38743874
case ISD::SETLE:
3875-
return UseSPE ? PPC::PRED_LE : PPC::PRED_LE;
3875+
return PPC::PRED_LE;
38763876
case ISD::SETOGT:
38773877
case ISD::SETGT:
3878-
return UseSPE ? PPC::PRED_GT : PPC::PRED_GT;
3878+
return PPC::PRED_GT;
38793879
case ISD::SETUGE:
38803880
case ISD::SETGE:
38813881
return UseSPE ? PPC::PRED_LE : PPC::PRED_GE;

0 commit comments

Comments
 (0)