ConstantFolding: Evaluate GEP indices in the index type.
authorBenjamin Kramer <benny.kra@googlemail.com>
Wed, 23 Jan 2013 20:41:05 +0000 (20:41 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Wed, 23 Jan 2013 20:41:05 +0000 (20:41 +0000)
commitb4d201ec544bbd3aec5e9feaec44df43b6b4bb6c
treed8c04802d6bd1193a715a96f8b9ec221ef9125e7
parent9e6a5a37460ff82ad4e3a7aea1c45e2c934ab25b
ConstantFolding: Evaluate GEP indices in the index type.

This fixes some edge cases that we would get wrong with uint64_ts.
PR14986.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173289 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ConstantFolding.cpp
test/Transforms/InstCombine/load3.ll