[llvm] r317594 - [InstCombine] Update stale comment. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 7 09:37:32 PST 2017
Author: ctopper
Date: Tue Nov 7 09:37:32 2017
New Revision: 317594
URL: http://llvm.org/viewvc/llvm-project?rev=317594&view=rev
Log:
[InstCombine] Update stale comment. NFC
Datalayout is no longer optional so the comment didn't match what the code currently does.
Modified:
llvm/trunk/lib/Transforms/InstCombine/InstCombineCompares.cpp
Modified: llvm/trunk/lib/Transforms/InstCombine/InstCombineCompares.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/InstCombine/InstCombineCompares.cpp?rev=317594&r1=317593&r2=317594&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/InstCombine/InstCombineCompares.cpp (original)
+++ llvm/trunk/lib/Transforms/InstCombine/InstCombineCompares.cpp Tue Nov 7 09:37:32 2017
@@ -426,8 +426,7 @@ Instruction *InstCombiner::foldCmpLoadFr
// Look for an appropriate type:
// - The type of Idx if the magic fits
- // - The smallest fitting legal type if we have a DataLayout
- // - Default to i32
+ // - The smallest fitting legal type
if (ArrayElementCount <= Idx->getType()->getIntegerBitWidth())
Ty = Idx->getType();
else
More information about the llvm-commits
mailing list