APInt-ify the gep scaling code, so that it correctly handles the case where
authorDan Gohman <gohman@apple.com>
Fri, 23 Oct 2009 17:57:43 +0000 (17:57 +0000)
committerDan Gohman <gohman@apple.com>
Fri, 23 Oct 2009 17:57:43 +0000 (17:57 +0000)
commit7abbd04e90489c087bfae03ad25c3a99aafbaded
tree2d81c7ee2eaabbabf5c2b107324fb9a9621ab478
parent934af9cfe08ba402882b061364aa693d47855547
APInt-ify the gep scaling code, so that it correctly handles the case where
the scale overflows pointer-sized arithmetic. This fixes PR5281.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84954 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
test/CodeGen/X86/large-gep-scale.ll [new file with mode: 0644]