[llvm] r340173 - [SelectionDAG] Reuse the Op's VT. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 20 06:44:04 PDT 2018
Author: rksimon
Date: Mon Aug 20 06:44:03 2018
New Revision: 340173
URL: http://llvm.org/viewvc/llvm-project?rev=340173&view=rev
Log:
[SelectionDAG] Reuse the Op's VT. NFCI.
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp?rev=340173&r1=340172&r2=340173&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp Mon Aug 20 06:44:03 2018
@@ -3244,7 +3244,7 @@ unsigned SelectionDAG::ComputeNumSignBit
// Bitcast 'large element' scalar/vector to 'small element' vector.
if ((SrcBits % VTBits) == 0) {
- assert(Op.getValueType().isVector() && "Expected bitcast to vector");
+ assert(VT.isVector() && "Expected bitcast to vector");
unsigned Scale = SrcBits / VTBits;
APInt SrcDemandedElts(NumElts / Scale, 0);
@@ -3382,7 +3382,7 @@ unsigned SelectionDAG::ComputeNumSignBit
// If setcc returns 0/-1, all bits are sign bits.
// We know that we have an integer-based boolean since these operations
// are only available for integer.
- if (TLI->getBooleanContents(Op.getValueType().isVector(), false) ==
+ if (TLI->getBooleanContents(VT.isVector(), false) ==
TargetLowering::ZeroOrNegativeOneBooleanContent)
return VTBits;
break;
More information about the llvm-commits
mailing list