You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Analysis] divisibility handling for dividing by a power-of-two constant (#6657)
Given this ttir:
```
tt.func @div(%arg0: i32 {tt.divisibility = 16 : i32}) {
%1 = arith.constant 2 : i32
%2 = arith.divsi %arg0, %1 : i32
}
```
Triton should be able to infer that %2 has divisibility = 8.
Use case: a kernel in which I load with a `mask = offsets < numel // 2`.
0 commit comments