Skip to content

Commit 9485b4d

Browse files
committed
remove the isDesirableToCommuteWithShift of X86
1 parent 4581afb commit 9485b4d

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

llvm/lib/Target/X86/X86ISelLowering.cpp

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -60673,20 +60673,3 @@ Align X86TargetLowering::getPrefLoopAlignment(MachineLoop *ML) const {
6067360673
return Align(1ULL << ExperimentalPrefInnermostLoopAlignment);
6067460674
return TargetLowering::getPrefLoopAlignment();
6067560675
}
60676-
60677-
bool X86TargetLowering::isDesirableToCommuteWithShift(
60678-
const SDNode *N, CombineLevel Level) const {
60679-
assert((N->getOpcode() == ISD::SHL || N->getOpcode() == ISD::SRA ||
60680-
N->getOpcode() == ISD::SRL) &&
60681-
"Expected shift op");
60682-
60683-
SDValue ShiftLHS = N->getOperand(0);
60684-
if (!ShiftLHS->hasOneUse())
60685-
return false;
60686-
60687-
if (ShiftLHS.getOpcode() == ISD::SIGN_EXTEND &&
60688-
!ShiftLHS.getOperand(0)->hasOneUse())
60689-
return false;
60690-
60691-
return true;
60692-
}

llvm/lib/Target/X86/X86ISelLowering.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1901,9 +1901,6 @@ namespace llvm {
19011901

19021902
SDValue getMOVL(SelectionDAG &DAG, const SDLoc &dl, MVT VT, SDValue V1,
19031903
SDValue V2) const;
1904-
1905-
bool isDesirableToCommuteWithShift(const SDNode *N,
1906-
CombineLevel Level) const override;
19071904
};
19081905

19091906
namespace X86 {

0 commit comments

Comments
 (0)