forked from OSchip/llvm-project
[DAG] MatchRotate - reuse existing LHSShiftArg/RHSShiftArg variables. NFC.
This commit is contained in:
parent
303526ef3a
commit
47cfe71027
|
@ -7687,7 +7687,7 @@ SDValue DAGCombiner::MatchRotate(SDValue LHS, SDValue RHS, const SDLoc &DL) {
|
|||
};
|
||||
|
||||
// TODO: Support pre-legalization funnel-shift by constant.
|
||||
bool IsRotate = LHSShift.getOperand(0) == RHSShift.getOperand(0);
|
||||
bool IsRotate = LHSShiftArg == RHSShiftArg;
|
||||
if (!IsRotate && !(HasFSHL || HasFSHR)) {
|
||||
if (TLI.isTypeLegal(VT) && LHS.hasOneUse() && RHS.hasOneUse() &&
|
||||
ISD::matchBinaryPredicate(LHSShiftAmt, RHSShiftAmt, MatchRotateSum)) {
|
||||
|
|
Loading…
Reference in New Issue