summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2017-11-07 17:37:32 +0000
committerCraig Topper <craig.topper@intel.com>2017-11-07 17:37:32 +0000
commit386fc2516cb8ec1cdbfa3bc9b293e36753360ed3 (patch)
tree802ee9f01e8dc2b188d60df7d9970a3fae0d3dab /llvm/lib
parent7b760095cb75ff8e7e08132272ff38909d5473c4 (diff)
downloadbcm5719-llvm-386fc2516cb8ec1cdbfa3bc9b293e36753360ed3.tar.gz
bcm5719-llvm-386fc2516cb8ec1cdbfa3bc9b293e36753360ed3.zip
[InstCombine] Update stale comment. NFC
Datalayout is no longer optional so the comment didn't match what the code currently does. llvm-svn: 317594
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp b/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
index cb4788576c5..2974449830d 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
@@ -426,8 +426,7 @@ Instruction *InstCombiner::foldCmpLoadFromIndexedGlobal(GetElementPtrInst *GEP,
// 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
OpenPOWER on IntegriCloud