diff options
author | Daniel Sanders <daniel_l_sanders@apple.com> | 2019-08-02 20:23:00 +0000 |
---|---|---|
committer | Daniel Sanders <daniel_l_sanders@apple.com> | 2019-08-02 20:23:00 +0000 |
commit | e7694f34ab6a12b8bb480cbfcb396d0a64fe965f (patch) | |
tree | 12fef202cc29a44f5d35161fc0f73982a56cde39 /llvm/lib/CodeGen/RegAllocFast.cpp | |
parent | 511be2a158907c99ee3309e43e3d2a1031c83701 (diff) | |
download | llvm-e7694f34ab6a12b8bb480cbfcb396d0a64fe965f.zip llvm-e7694f34ab6a12b8bb480cbfcb396d0a64fe965f.tar.gz llvm-e7694f34ab6a12b8bb480cbfcb396d0a64fe965f.tar.bz2 |
Use MCRegister in MCRegisterInfo's interfaces
Summary:
As part of this, define DenseMapInfo for MCRegister (and Register while I'm at it)
Depends on D65599
Reviewers: arsenm
Subscribers: MatzeB, qcolombet, jvesely, wdng, nhaehnle, hiraditya, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D65605
llvm-svn: 367719
Diffstat (limited to 'llvm/lib/CodeGen/RegAllocFast.cpp')
-rw-r--r-- | llvm/lib/CodeGen/RegAllocFast.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/RegAllocFast.cpp b/llvm/lib/CodeGen/RegAllocFast.cpp index 7978952..fbf81c2 100644 --- a/llvm/lib/CodeGen/RegAllocFast.cpp +++ b/llvm/lib/CodeGen/RegAllocFast.cpp @@ -862,7 +862,7 @@ bool RegAllocFast::setPhysReg(MachineInstr &MI, MachineOperand &MO, } // Handle subregister index. - MO.setReg(PhysReg ? TRI->getSubReg(PhysReg, MO.getSubReg()) : 0); + MO.setReg(PhysReg ? TRI->getSubReg(PhysReg, MO.getSubReg()) : Register()); MO.setIsRenamable(true); MO.setSubReg(0); |