summaryrefslogtreecommitdiff
path: root/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2013-01-27 21:02:52 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2013-01-27 21:02:52 +0000
commit0fef46f50e116e9aa0811ba8eb605d82ab64faed (patch)
tree63671914a4daf1f655560de7a2e5e601dae25df9 /lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
parent9d2b1aef1b5bc8926c66b38f03583a77d015e921 (diff)
downloadllvm-0fef46f50e116e9aa0811ba8eb605d82ab64faed.tar.gz
llvm-0fef46f50e116e9aa0811ba8eb605d82ab64faed.tar.bz2
llvm-0fef46f50e116e9aa0811ba8eb605d82ab64faed.tar.xz
Legalizer: Reword comment again, per Duncan's suggestion.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173625 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp')
-rw-r--r--lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp b/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
index 88e72ecd92..182b7f3e68 100644
--- a/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
+++ b/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
@@ -2098,9 +2098,8 @@ void DAGTypeLegalizer::ExpandIntRes_Shift(SDNode *N,
EVT VT = LHSL.getValueType();
// If the shift amount operand is coming from a vector legalization it may
- // have an illegal type. Fix that first by casting the operand. Otherwise
- // the new SHL_PARTS operation would need further legalization, and the
- // legalizer assumes that illegal SHL_PARTS never occur.
+ // have an illegal type. Fix that first by casting the operand, otherwise
+ // the new SHL_PARTS operation would need further legalization.
SDValue ShiftOp = N->getOperand(1);
MVT ShiftTy = TLI.getShiftAmountTy(VT);
assert(ShiftTy.getSizeInBits() >= Log2_32_Ceil(VT.getSizeInBits()) &&