summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
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
commitcf9dae17b7711b7c8458827c9f0d03a4ae9281b1 (patch)
treecca3209f110f2c3443a3c873bb46043beced401f /llvm/lib/CodeGen
parent7fe8f63544b5858bf3cd235812af9eb4c4cfa005 (diff)
downloadbcm5719-llvm-cf9dae17b7711b7c8458827c9f0d03a4ae9281b1.tar.gz
bcm5719-llvm-cf9dae17b7711b7c8458827c9f0d03a4ae9281b1.zip
Legalizer: Reword comment again, per Duncan's suggestion.
llvm-svn: 173625
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
index 88e72ecd929..182b7f3e680 100644
--- a/llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
+++ b/llvm/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()) &&
OpenPOWER on IntegriCloud