Repository navigation
Conversation
…tiled.
The CPU `LowerInnerTiledPattern` and `DropInnerTiledUnitDimsPattern`
both wrap the per-intrinsic ACC distribute/reassemble in
`IREE::Util::HoistableConversionOp` pairs (tagged
`kDataTiledAcc{Distribute,Reassemble}`, `kDropUnitDims`/`kAddUnitDims`)
so the conversions can sink/hoist out of any reduction loop wrapping
the intrinsic.
Anything that didn't get hoisted out is a trivial round-trip; calling
`IREE::Util::eliminateHoistableConversions` on the function at the end
of the pass cancels the surviving pairs. GPU does the same in its
`LowerIREEGPUOpsPass`.
Strengthens the `lower_inner_tiled` lit test with a `CHECK-NOT:
util.hoistable_conversion` so the elimination is verified.
Signed-off-by: Benoit Jacob <[email protected]>
Progress towards #24323
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The CPU
LowerInnerTiledPatternandDropInnerTiledUnitDimsPatternboth wrap the per-intrinsic ACC distribute/reassemble in
IREE::Util::HoistableConversionOppairs (taggedkDataTiledAcc{Distribute,Reassemble},kDropUnitDims/kAddUnitDims)so the conversions can sink/hoist out of any reduction loop wrapping
the intrinsic.
Anything that didn't get hoisted out is a trivial round-trip; calling
IREE::Util::eliminateHoistableConversionson the function at the endof the pass cancels the surviving pairs. GPU does the same in its
LowerIREEGPUOpsPass.Strengthens the
lower_inner_tiledlit test with aCHECK-NOT: util.hoistable_conversionso the elimination is verified.Progress towards #24323