OSDN Git Service

Factor out the code for sign-extending/truncating gep indices
authorDan Gohman <gohman@apple.com>
Mon, 8 Dec 2008 07:57:47 +0000 (07:57 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 8 Dec 2008 07:57:47 +0000 (07:57 +0000)
commitc8a1a3c426209e9c7b35e279e1578a89edc40af6
treef6fc966236685551a212139bd05c1a3d4589ca2a
parent11dcd8d38de031c34380fd6ab7a0daacdefb263a
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
include/llvm/CodeGen/FastISel.h
lib/CodeGen/SelectionDAG/FastISel.cpp
lib/Target/X86/X86FastISel.cpp
test/CodeGen/X86/fast-isel-gep-sext.ll [new file with mode: 0644]