From 9d806711fd050e0466100bed1386423bc9ecad82 Mon Sep 17 00:00:00 2001 From: Eddie Richter Date: Tue, 19 Mar 2024 20:43:19 -0600 Subject: [PATCH] Small fixup --- lib/Targets/AIETargetHSA.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/Targets/AIETargetHSA.cpp b/lib/Targets/AIETargetHSA.cpp index 0998b21446..83dafdc66b 100644 --- a/lib/Targets/AIETargetHSA.cpp +++ b/lib/Targets/AIETargetHSA.cpp @@ -141,12 +141,6 @@ mlir::LogicalResult AIETranslateToHSA(ModuleOp module, raw_ostream &output) { llvm::reverse(op.getMixedOffsets()), [](OpFoldResult s) { return getConstantIntValue(s).value(); }); - // buffer_length - int32_t repeat_length = 0; - for (int32_t index_3d = 0; index_3d < sizes[2]; index_3d++) - for (int32_t index_2d = 0; index_2d < sizes[1]; index_2d++) - repeat_length += sizes[0]; - // buffer_offset size_t stride = 1; size_t offset = 0;