[llvm] c466c5f - [ARM] Fix build after D86087

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 18 09:21:24 PDT 2020


Author: Fangrui Song
Date: 2020-08-18T09:20:32-07:00
New Revision: c466c5fa7ee90f90c0e1d08777f1f085bb78a475

URL: https://github.com/llvm/llvm-project/commit/c466c5fa7ee90f90c0e1d08777f1f085bb78a475
DIFF: https://github.com/llvm/llvm-project/commit/c466c5fa7ee90f90c0e1d08777f1f085bb78a475.diff

LOG: [ARM] Fix build after D86087

Added: 
    

Modified: 
    llvm/lib/Target/ARM/ARMLowOverheadLoops.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/ARM/ARMLowOverheadLoops.cpp b/llvm/lib/Target/ARM/ARMLowOverheadLoops.cpp
index 11e8aa742d89..4d1ab88fe3b2 100644
--- a/llvm/lib/Target/ARM/ARMLowOverheadLoops.cpp
+++ b/llvm/lib/Target/ARM/ARMLowOverheadLoops.cpp
@@ -1342,7 +1342,7 @@ MachineInstr* ARMLowOverheadLoops::ExpandLoopStart(LowOverheadLoop &LoLoop) {
   MachineBasicBlock *MBB = InsertPt->getParent();
   bool IsDo = Start->getOpcode() == ARM::t2DoLoopStart;
   unsigned Opc = LoLoop.getStartOpcode();
-  MachineOperand &Count = LoLoop.getCount();
+  MachineOperand &Count = LoLoop.getLoopStartOperand();
 
   MachineInstrBuilder MIB =
     BuildMI(*MBB, InsertPt, InsertPt->getDebugLoc(), TII->get(Opc));


        


More information about the llvm-commits mailing list