diff options
author | Florian Hahn <flo@fhahn.com> | 2019-12-02 20:00:56 +0000 |
---|---|---|
committer | Florian Hahn <flo@fhahn.com> | 2019-12-02 20:47:08 +0000 |
commit | 5154b0253d262be12d8f21edefd8c6d231dcf7a1 (patch) | |
tree | 973512357e9388181a1b65764baa5495b79ec323 /llvm/lib/CodeGen/MachineBasicBlock.cpp | |
parent | 7d019d1a3be252a885e8db1ee7af11c90b450d38 (diff) | |
download | llvm-5154b0253d262be12d8f21edefd8c6d231dcf7a1.zip llvm-5154b0253d262be12d8f21edefd8c6d231dcf7a1.tar.gz llvm-5154b0253d262be12d8f21edefd8c6d231dcf7a1.tar.bz2 |
[MIBundles] Move analyzePhysReg out of MIBundleOperands iterator (NFC).
analyzePhysReg does not really fit into the iterator and moving it
makes it easier to change the base iterator.
Reviewers: evandro, t.p.northover, paquette, MatzeB, arsenm, qcolombet
Reviewed By: arsenm
Differential Revision: https://reviews.llvm.org/D70559
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineBasicBlock.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/MachineBasicBlock.cpp b/llvm/lib/CodeGen/MachineBasicBlock.cpp index 71354ea..f433c4b 100644 --- a/llvm/lib/CodeGen/MachineBasicBlock.cpp +++ b/llvm/lib/CodeGen/MachineBasicBlock.cpp @@ -1395,8 +1395,7 @@ MachineBasicBlock::computeRegisterLiveness(const TargetRegisterInfo *TRI, --N; - MachineOperandIteratorBase::PhysRegInfo Info = - ConstMIOperands(*I).analyzePhysReg(Reg, TRI); + PhysRegInfo Info = AnalyzePhysRegInBundle(*I, Reg, TRI); // Register is live when we read it here. if (Info.Read) @@ -1434,8 +1433,7 @@ MachineBasicBlock::computeRegisterLiveness(const TargetRegisterInfo *TRI, --N; - MachineOperandIteratorBase::PhysRegInfo Info = - ConstMIOperands(*I).analyzePhysReg(Reg, TRI); + PhysRegInfo Info = AnalyzePhysRegInBundle(*I, Reg, TRI); // Defs happen after uses so they take precedence if both are present. |