xla
xla copied to clipboard
[fusion] Add pattern constraint for dynamic slice fusion
This patch constraints the dynamic-slice-fusion to only be triggered when the offset is either a constant or loop iteration offset that can guarentee that no D2H copy is required.