[llvm] r296934 - [MISched] Remove unused arguments. NFC.

Eli Friedman via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 3 16:42:56 PST 2017


Author: efriedma
Date: Fri Mar  3 18:42:55 2017
New Revision: 296934

URL: http://llvm.org/viewvc/llvm-project?rev=296934&view=rev
Log:
[MISched] Remove unused arguments. NFC.


Modified:
    llvm/trunk/lib/CodeGen/ScheduleDAGInstrs.cpp

Modified: llvm/trunk/lib/CodeGen/ScheduleDAGInstrs.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/ScheduleDAGInstrs.cpp?rev=296934&r1=296933&r2=296934&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/ScheduleDAGInstrs.cpp (original)
+++ llvm/trunk/lib/CodeGen/ScheduleDAGInstrs.cpp Fri Mar  3 18:42:55 2017
@@ -539,8 +539,7 @@ static inline bool isGlobalMemoryObject(
 
 /// Returns true if the two MIs need a chain edge between them.
 /// This is called on normal stores and loads.
-static bool MIsNeedChainEdge(AliasAnalysis *AA, const MachineFrameInfo *MFI,
-                             const DataLayout &DL, MachineInstr *MIa,
+static bool MIsNeedChainEdge(AliasAnalysis *AA, MachineInstr *MIa,
                              MachineInstr *MIb) {
   const MachineFunction *MF = MIa->getParent()->getParent();
   const TargetInstrInfo *TII = MF->getSubtarget().getInstrInfo();
@@ -600,8 +599,7 @@ static bool MIsNeedChainEdge(AliasAnalys
 
 void ScheduleDAGInstrs::addChainDependency (SUnit *SUa, SUnit *SUb,
                                             unsigned Latency) {
-  if (MIsNeedChainEdge(AAForDep, &MFI, MF.getDataLayout(), SUa->getInstr(),
-                       SUb->getInstr())) {
+  if (MIsNeedChainEdge(AAForDep, SUa->getInstr(), SUb->getInstr())) {
     SDep Dep(SUa, SDep::MayAliasMem);
     Dep.setLatency(Latency);
     SUb->addPred(Dep);




More information about the llvm-commits mailing list