]> granicus.if.org Git - llvm/commit
[SystemZ] Make sure of correct regclasses in insertSelect()
authorJonas Paulsson <paulsson@linux.vnet.ibm.com>
Fri, 31 Mar 2017 14:06:59 +0000 (14:06 +0000)
committerJonas Paulsson <paulsson@linux.vnet.ibm.com>
Fri, 31 Mar 2017 14:06:59 +0000 (14:06 +0000)
commit8419f9e400d3d1e15101ae42f0db2d9bd1095fc3
treee05b8992b89cfffb8ad51e174dcf3949edec7565
parent9fc191fd45d36f450654fcc73386e51e64ee73d6
[SystemZ]  Make sure of correct regclasses in insertSelect()

Since LOCR only accepts GR32 virtual registers, its operands must be copied
into this regclass in insertSelect(), when an LOCR is built. Otherwise, the
case where the source operand was GRX32 will produce invalid IR.

Review: Ulrich Weigand

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@299220 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/SystemZ/SystemZInstrInfo.cpp
test/CodeGen/SystemZ/locr-legal-regclass.ll [new file with mode: 0644]