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/InlineSpiller.cpp | |
parent | 7d019d1a3be252a885e8db1ee7af11c90b450d38 (diff) | |
download | bcm5719-llvm-5154b0253d262be12d8f21edefd8c6d231dcf7a1.tar.gz bcm5719-llvm-5154b0253d262be12d8f21edefd8c6d231dcf7a1.zip |
[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/InlineSpiller.cpp')
-rw-r--r-- | llvm/lib/CodeGen/InlineSpiller.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/InlineSpiller.cpp b/llvm/lib/CodeGen/InlineSpiller.cpp index 2ebaf327c03..75d978472cf 100644 --- a/llvm/lib/CodeGen/InlineSpiller.cpp +++ b/llvm/lib/CodeGen/InlineSpiller.cpp @@ -850,8 +850,7 @@ foldMemoryOperand(ArrayRef<std::pair<MachineInstr *, unsigned>> Ops, // Skip non-Defs, including undef uses and internal reads. if (MO->isUse()) continue; - MIBundleOperands::PhysRegInfo RI = - MIBundleOperands(*FoldMI).analyzePhysReg(Reg, &TRI); + PhysRegInfo RI = AnalyzePhysRegInBundle(*FoldMI, Reg, &TRI); if (RI.FullyDefined) continue; // FoldMI does not define this physreg. Remove the LI segment. |