OSDN Git Service

On 64-bit targets, change 32-bit getelementptr indices to be 64-bit
authorDan Gohman <gohman@apple.com>
Thu, 11 Sep 2008 23:06:38 +0000 (23:06 +0000)
committerDan Gohman <gohman@apple.com>
Thu, 11 Sep 2008 23:06:38 +0000 (23:06 +0000)
commit4f833d435147f98329ae015140ca2b6ea530b717
tree5245be0deea50b18408cea59ef1f59e0230d5965
parent3139ff8f7b5e3eeb170d77ac8472fc4ca596ec0e
On 64-bit targets, change 32-bit getelementptr indices to be 64-bit
getelementptr indices, inserting an explicit cast if necessary.
This helps expose the sign-extension operation to other optimizations.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56133 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/InstructionCombining.cpp
test/Transforms/InstCombine/getelementptr_promote.ll [new file with mode: 0644]