Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions third_party/intel/lib/TritonIntelGPUToLLVM/TargetInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,6 @@ bool TargetInfo::warpReduce(RewriterBase &rewriter, Location loc,
SmallVector<Value> &acc, triton::ReduceOp op,
unsigned numLaneToReduce,
unsigned interleave) const {
const bool isLTS =
op->getParentOfType<ModuleOp>()->hasAttr("triton_gpu.is_lts");
if (isLTS)
return false;
// No horizontal reduce required.
if (numLaneToReduce == 1)
return false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -978,13 +978,11 @@ void LayoutRematerialization::rewriteSlice(SetVector<Value> &slice,
SetVector<Operation *> opsToRewrite;
// Keep track of yield operands that need to be duplicated.
DenseMap<Operation *, SmallVector<int>> yieldOperandsMap;
bool isLTS =
convertOp->getParentOfType<ModuleOp>()->hasAttr("triton_gpu.is_lts");
for (Value v : slice) {
auto layoutIt = layout.find(v);
assert(layoutIt != layout.end());
// If we already have a remat value for this value, use it.
if (!isLTS && hasRematValue(v, layoutIt->second)) {
if (hasRematValue(v, layoutIt->second)) {
mapping.map(v, getRematValue(v, layoutIt->second));
continue;
}
Expand Down