[llvm] r370489 - [DAGCombine] visitVSELECT - remove equivalent getValueType() call. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 30 10:21:20 PDT 2019
Author: rksimon
Date: Fri Aug 30 10:21:20 2019
New Revision: 370489
URL: http://llvm.org/viewvc/llvm-project?rev=370489&view=rev
Log:
[DAGCombine] visitVSELECT - remove equivalent getValueType() call. NFCI.
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp?rev=370489&r1=370488&r2=370489&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp Fri Aug 30 10:21:20 2019
@@ -8711,7 +8711,6 @@ SDValue DAGCombiner::visitVSELECT(SDNode
isAbs = ISD::isBuildVectorAllZeros(N1.getOperand(0).getNode());
if (isAbs) {
- EVT VT = LHS.getValueType();
if (TLI.isOperationLegalOrCustom(ISD::ABS, VT))
return DAG.getNode(ISD::ABS, DL, VT, LHS);
More information about the llvm-commits
mailing list