OSDN Git Service

[MISched] Remove unused arguments. NFC.
authorEli Friedman <efriedma@codeaurora.org>
Sat, 4 Mar 2017 00:42:55 +0000 (00:42 +0000)
committerEli Friedman <efriedma@codeaurora.org>
Sat, 4 Mar 2017 00:42:55 +0000 (00:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@296934 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/ScheduleDAGInstrs.cpp

index 2019729..135e053 100644 (file)
@@ -539,8 +539,7 @@ static inline bool isGlobalMemoryObject(AliasAnalysis *AA, MachineInstr *MI) {
 
 /// 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(AliasAnalysis *AA, const MachineFrameInfo *MFI,
 
 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);