From 5154b0253d262be12d8f21edefd8c6d231dcf7a1 Mon Sep 17 00:00:00 2001 From: Florian Hahn Date: Mon, 2 Dec 2019 20:00:56 +0000 Subject: [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 --- llvm/lib/CodeGen/InlineSpiller.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'llvm/lib/CodeGen/InlineSpiller.cpp') 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> 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. -- cgit v1.2.1