Fix the LLC regressions on X86 last night. In particular, when undoing
authorChris Lattner <sabre@nondot.org>
Thu, 6 Oct 2005 17:19:06 +0000 (17:19 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 6 Oct 2005 17:19:06 +0000 (17:19 +0000)
commit8a61a7524af19d67bd11f8e7d868ca75efbf5c91
treee69bfba837eae89aedcb27981a71ac3f0dbf6109
parentf3fb71bfd7d216733a64a2e5d47a4e9a48016f14
Fix the LLC regressions on X86 last night.  In particular, when undoing
previous copy elisions and we discover we need to reload a register, make
sure to use the regclass of the original register for the reload, not the
class of the current register.  This avoid using 16-bit loads to reload 32-bit
values.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23645 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/VirtRegMap.cpp