Skip to content

Commit acb4f9d

Browse files
committed
Fix merge conflicts in Utility.cpp
1 parent ff05bd2 commit acb4f9d

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
@@ -28,7 +28,6 @@ int deduceMinCountBetweeOps(Operation *beginOp, Operation *endOp,
2828
deduceMinCountInBlock(ifOp.getElseRegion().front(), countFunc);
2929
count += std::min(minThen, minElse);
3030
} else if (auto forOp = llvm::dyn_cast<scf::ForOp>(op)) {
31-
<<<<<<< HEAD
3231
if (std::optional<APInt> tripCount = forOp.getStaticTripCount()) {
3332
uint64_t tcVal = 0;
3433
if (forOp.getUnsignedCmp() && tripCount->ugt(0))
@@ -37,13 +36,6 @@ int deduceMinCountBetweeOps(Operation *beginOp, Operation *endOp,
3736
tcVal = tripCount->getSExtValue();
3837
if (tcVal > 0)
3938
count += tcVal * deduceMinCountInBlock(*forOp.getBody(), countFunc);
40-
=======
41-
int64_t tripCount = forOp.getStaticTripCount()
42-
.value_or(llvm::APInt(64, 0))
43-
.getZExtValue();
44-
if (tripCount > 0) {
45-
count += tripCount * deduceMinCountInBlock(*forOp.getBody(), countFunc);
46-
>>>>>>> 0bf92bfbf ([BACKEND] Update LLVM version to https://github.com/llvm/llvm-project/commit/b8649098a7fcf598406d8d8b7d68891d1444e9c8 (#8263))
4739
}
4840
} else {
4941
count += countFunc(op);

0 commit comments

Comments
 (0)