Use individual register classes when spilling snippets.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Sat, 26 Mar 2011 22:16:41 +0000 (22:16 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Sat, 26 Mar 2011 22:16:41 +0000 (22:16 +0000)
commite9c50732f71a6c2f6813f6c40743a9bfa3791ca8
tree30501bbda5a8a710df310e1f995fc165783a3762
parent7d706ede7d7e5262bb22f75f1972f0eacbf7eab5
Use individual register classes when spilling snippets.

The main register class may have been inflated by live range splitting, so that
register class is not necessarily valid for the snippet instructions.

Use the original register class for the stack slot interval.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128351 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/InlineSpiller.cpp
lib/CodeGen/LiveRangeEdit.h