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
Enhance ArgumentPromotion to allow processing calls with only *some*
peelable arguments.
Example:
```
func.func private @foo(%arg0: memref<?x!llvm.struct<(i32)>>, %arg1: memref<?x!llvm.struct<(f32)>>) {
%c0 = arith.constant 0 : index
%0 = "polygeist.subindex"(%arg0, %c0) : (memref<?x!llvm.struct<(i32)>>, index) -> memref<?xi32>
%1 = sycl.addrspacecast %arg1 : memref<?x!llvm.struct<(f32)>> to memref<?x!llvm.struct<(f32)>, 4>
...
```
Only %arg0 can be peeled because %arg1 is not used by a subindex
instruction.
---------
Signed-off-by: Tiotto, Ettore <[email protected]>
0 commit comments