OSDN Git Service

[MIR-Canon] Add support for rewriting VRegs that are typed but don't have an RC.
authorPuyan Lotfi <puyan@puyan.org>
Thu, 30 May 2019 18:06:28 +0000 (18:06 +0000)
committerPuyan Lotfi <puyan@puyan.org>
Thu, 30 May 2019 18:06:28 +0000 (18:06 +0000)
commitfaddd4770cbe150f475df84218e375a6d71e32c6
tree6fb0080675df2e224ab65427d339726cec09fb84
parent53888ed10fc7dca7aad0b35e45ac97453c2a9bef
[MIR-Canon] Add support for rewriting VRegs that are typed but don't have an RC.

There were crashes (addrspace-memoperands.mir was only one of them) in MIR that
had operands that came from before register classes were set. With these
operands, creating a replacement vreg (for MIR-Canon's renaming) needs to use
the vreg type rather than the RegisterClass which is not present.

Differential Revision: https://reviews.llvm.org/D62543

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@362122 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/MIRCanonicalizerPass.cpp
test/CodeGen/MIR/AArch64/addrspace-memoperands.mir