ARM: optimizeSelect has to consider the previous register class
authorMatthias Braun <matze@braunis.de>
Fri, 4 Oct 2013 16:52:56 +0000 (16:52 +0000)
committerMatthias Braun <matze@braunis.de>
Fri, 4 Oct 2013 16:52:56 +0000 (16:52 +0000)
commitd1bd8d904c5adbe14f700be02f1e6479b5a6d04b
tree193bfea1c22a4876c6572a7e79301440a0b9927c
parent4e54f41d6ce6b5a502d2f8496f1e8360ed953b7d
ARM: optimizeSelect has to consider the previous register class

optimizeSelect folds (predicated) copy instructions, it must not ignore
the original register class of the operand when replacing the register
with the copies dest register.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191963 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMBaseInstrInfo.cpp
test/CodeGen/ARM/optselect-regclass.ll [new file with mode: 0644]