[llvm] r314024 - [x86] shiftRightAlgebraic -> shiftRightArithmetic; NFC
Sanjay Patel via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 22 12:49:37 PDT 2017
Author: spatel
Date: Fri Sep 22 12:49:37 2017
New Revision: 314024
URL: http://llvm.org/viewvc/llvm-project?rev=314024&view=rev
Log:
[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. :)
Modified:
llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=314024&r1=314023&r2=314024&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Fri Sep 22 12:49:37 2017
@@ -31709,7 +31709,7 @@ static SDValue combineShiftLeft(SDNode *
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, S
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)
More information about the llvm-commits
mailing list