Convert uses of getPhysicalRegisterRegClass in VirtRegRewriter.cpp.
authorRafael Espindola <rafael.espindola@gmail.com>
Sun, 11 Jul 2010 16:45:17 +0000 (16:45 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Sun, 11 Jul 2010 16:45:17 +0000 (16:45 +0000)
commitdb776099911ea3fa42f11519632091e72bdcddfe
tree6dbc641f79a4ab039e64e25db6ce9300f30c3dce
parentf7d55b97f01ce133eb830ca93411df4caa9d65da
Convert uses of getPhysicalRegisterRegClass in VirtRegRewriter.cpp.

The first one was used just to call isSafeToMoveRegClassDefs. In
general, using a more specific reg class is better, in practice only
x86 implements that method and the results are always the same.

The second one is in FindFreeRegister and is used to check if a register
is in a register class, a much more direct call to contains is better as
it should cover more cases and is faster.

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