@@ -1099,7 +1099,7 @@ struct LoopFuser {
10991099
11001100 LLVM_DEBUG (dbgs () << " Checking if this mem inst can be hoisted.\n " );
11011101 for (Instruction *NotHoistedInst : NotHoisting) {
1102- if (auto D = DI.depends (&I, NotHoistedInst, true )) {
1102+ if (auto D = DI.depends (&I, NotHoistedInst)) {
11031103 // Dependency is not read-before-write, write-before-read or
11041104 // write-before-write
11051105 if (D->isFlow () || D->isAnti () || D->isOutput ()) {
@@ -1111,7 +1111,7 @@ struct LoopFuser {
11111111 }
11121112
11131113 for (Instruction *ReadInst : FC0.MemReads ) {
1114- if (auto D = DI.depends (ReadInst, &I, true )) {
1114+ if (auto D = DI.depends (ReadInst, &I)) {
11151115 // Dependency is not read-before-write
11161116 if (D->isAnti ()) {
11171117 LLVM_DEBUG (dbgs () << " Inst depends on a read instruction in FC0.\n " );
@@ -1121,7 +1121,7 @@ struct LoopFuser {
11211121 }
11221122
11231123 for (Instruction *WriteInst : FC0.MemWrites ) {
1124- if (auto D = DI.depends (WriteInst, &I, true )) {
1124+ if (auto D = DI.depends (WriteInst, &I)) {
11251125 // Dependency is not write-before-read or write-before-write
11261126 if (D->isFlow () || D->isOutput ()) {
11271127 LLVM_DEBUG (dbgs () << " Inst depends on a write instruction in FC0.\n " );
@@ -1153,7 +1153,7 @@ struct LoopFuser {
11531153 return true ;
11541154
11551155 for (Instruction *ReadInst : FC1.MemReads ) {
1156- if (auto D = DI.depends (&I, ReadInst, true )) {
1156+ if (auto D = DI.depends (&I, ReadInst)) {
11571157 // Dependency is not write-before-read
11581158 if (D->isFlow ()) {
11591159 LLVM_DEBUG (dbgs () << " Inst depends on a read instruction in FC1.\n " );
@@ -1163,7 +1163,7 @@ struct LoopFuser {
11631163 }
11641164
11651165 for (Instruction *WriteInst : FC1.MemWrites ) {
1166- if (auto D = DI.depends (&I, WriteInst, true )) {
1166+ if (auto D = DI.depends (&I, WriteInst)) {
11671167 // Dependency is not write-before-write or read-before-write
11681168 if (D->isOutput () || D->isAnti ()) {
11691169 LLVM_DEBUG (dbgs () << " Inst depends on a write instruction in FC1.\n " );
@@ -1335,7 +1335,7 @@ struct LoopFuser {
13351335 case FUSION_DEPENDENCE_ANALYSIS_SCEV:
13361336 return accessDiffIsPositive (*FC0.L , *FC1.L , I0, I1, AnyDep);
13371337 case FUSION_DEPENDENCE_ANALYSIS_DA: {
1338- auto DepResult = DI.depends (&I0, &I1, true );
1338+ auto DepResult = DI.depends (&I0, &I1);
13391339 if (!DepResult)
13401340 return true ;
13411341#ifndef NDEBUG
0 commit comments