Check TRI->getReservedRegs because other allocators do it. Even though
authorAndrew Trick <atrick@apple.com>
Thu, 11 Nov 2010 17:46:29 +0000 (17:46 +0000)
committerAndrew Trick <atrick@apple.com>
Thu, 11 Nov 2010 17:46:29 +0000 (17:46 +0000)
commit8a83d54528c197675ba0f21ebe95ac30fa3d8841
treefdf0c61575f1df20e903a3e481acf8561e30ab0c
parent8e78cc4e130a8773cc8a2be2a94c4a97317ac383
Check TRI->getReservedRegs because other allocators do it. Even though
it makes no sense for allocation_order iterators to visit reserved regs.
The inline spiller depends on AliasAnalysis.
Manage the Query state to avoid uninitialized or stale results.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118800 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/LiveIntervalUnion.h
lib/CodeGen/RegAllocBase.h
lib/CodeGen/RegAllocBasic.cpp