Skip to content

Commit fa4f194

Browse files
karupayunkhasanovaa
authored andcommitted
Fix merge conflicts in Utility.cpp
1 parent b8426ad commit fa4f194

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

third_party/amd/lib/TritonAMDGPUTransforms/Utility.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ int deduceMinCountBetweeOps(Operation *beginOp, Operation *endOp,
2929
deduceMinCountInBlock(ifOp.getElseRegion().front(), countFunc);
3030
count += std::min(minThen, minElse);
3131
} else if (auto forOp = llvm::dyn_cast<scf::ForOp>(op)) {
32-
<<<<<<< HEAD
3332
if (std::optional<APInt> tripCount = forOp.getStaticTripCount()) {
3433
uint64_t tcVal = 0;
3534
if (forOp.getUnsignedCmp() && tripCount->ugt(0))
@@ -38,13 +37,6 @@ int deduceMinCountBetweeOps(Operation *beginOp, Operation *endOp,
3837
tcVal = tripCount->getSExtValue();
3938
if (tcVal > 0)
4039
count += tcVal * deduceMinCountInBlock(*forOp.getBody(), countFunc);
41-
=======
42-
int64_t tripCount = forOp.getStaticTripCount()
43-
.value_or(llvm::APInt(64, 0))
44-
.getZExtValue();
45-
if (tripCount > 0) {
46-
count += tripCount * deduceMinCountInBlock(*forOp.getBody(), countFunc);
47-
>>>>>>> 0bf92bfbf ([BACKEND] Update LLVM version to https://github.com/llvm/llvm-project/commit/b8649098a7fcf598406d8d8b7d68891d1444e9c8 (#8263))
4840
}
4941
} else {
5042
count += countFunc(op);

0 commit comments

Comments
 (0)