Avoid emitting a PIC base register if no PIC addresses are needed.
authorDan Gohman <gohman@apple.com>
Fri, 17 Sep 2010 20:24:24 +0000 (20:24 +0000)
committerDan Gohman <gohman@apple.com>
Fri, 17 Sep 2010 20:24:24 +0000 (20:24 +0000)
commitd8c0a51362cfb7d08bec20e2341f8cc73561526a
tree6a94731ff61fcdd207123dbba4b6b00056372595
parentd4ef24344ad0466659860e9c57ac12c1e9c9bc35
Avoid emitting a PIC base register if no PIC addresses are needed.
This fixes rdar://8396318.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114201 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86InstrInfo.cpp
test/CodeGen/X86/fast-isel-avoid-unnecessary-pic-base.ll [new file with mode: 0644]