commit | c8a1a3c426209e9c7b35e279e1578a89edc40af6 | [log] [tgz] |
---|---|---|
author | Dan Gohman <gohman@apple.com> | Mon Dec 08 07:57:47 2008 +0000 |
committer | Dan Gohman <gohman@apple.com> | Mon Dec 08 07:57:47 2008 +0000 |
tree | f6fc966236685551a212139bd05c1a3d4589ca2a | |
parent | 11dcd8d38de031c34380fd6ab7a0daacdefb263a [diff] |
Factor out the code for sign-extending/truncating gep indices and use it in x86 address mode folding. Also, make getRegForValue return 0 for illegal types even if it has a ValueMap for them, because Argument values are put in the ValueMap. This fixes PR3181. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60696 91177308-0d34-0410-b5e6-96231b3b80d8