ARM: Fix ELF global base reg intialization.
authorJim Grosbach <grosbach@apple.com>
Mon, 26 Aug 2013 20:07:25 +0000 (20:07 +0000)
committerJim Grosbach <grosbach@apple.com>
Mon, 26 Aug 2013 20:07:25 +0000 (20:07 +0000)
commitbb4066123d91c0347cb6333caca527d1a979e703
tree6c05655f7458fd019590ce637c0a5a6b8b2273bd
parent055d20742642a7392d5931b61f2ea09c60c204dd
ARM: Fix ELF global base reg intialization.

The create machine code wasn't properly in SSA, which the machine verifier
properly complains about. Now that fast-isel is closer to verifier clean,
errors like this show up more clearly.

Additionally, the Thumb pseudo tPICADD was used for both ARM and Thumb
mode functions, which is obviously wrong. Fix that along the way.

Test case is part of the following commit which will finish making an
additional fast-isel test verifier clean an enable it for the
regression test suite. This commit is separate since its not just
a verifier cleanup, but an actual correctness issue.

rdar://12594152 (for the fast-isel verifier aspects)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189269 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMInstrInfo.cpp