forked from OSchip/llvm-project
[x86] shiftRightAlgebraic -> shiftRightArithmetic; NFC
x86 re-education camp is in session. The LLVM LangRef agrees with x86 too. The DAG nodes are undocumented and ambiguous as always. :) llvm-svn: 314024
This commit is contained in:
parent
3339954fa3
commit
0c723bb017
|
@ -31709,7 +31709,7 @@ static SDValue combineShiftLeft(SDNode *N, SelectionDAG &DAG) {
|
|||
return SDValue();
|
||||
}
|
||||
|
||||
static SDValue combineShiftRightAlgebraic(SDNode *N, SelectionDAG &DAG) {
|
||||
static SDValue combineShiftRightArithmetic(SDNode *N, SelectionDAG &DAG) {
|
||||
SDValue N0 = N->getOperand(0);
|
||||
SDValue N1 = N->getOperand(1);
|
||||
EVT VT = N0.getValueType();
|
||||
|
@ -31835,7 +31835,7 @@ static SDValue combineShift(SDNode* N, SelectionDAG &DAG,
|
|||
return V;
|
||||
|
||||
if (N->getOpcode() == ISD::SRA)
|
||||
if (SDValue V = combineShiftRightAlgebraic(N, DAG))
|
||||
if (SDValue V = combineShiftRightArithmetic(N, DAG))
|
||||
return V;
|
||||
|
||||
if (N->getOpcode() == ISD::SRL)
|
||||
|
|
Loading…
Reference in New Issue