-
Notifications
You must be signed in to change notification settings - Fork 618
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use upstream dataflow tooling to build an arithmetic opt pass. (#18702)
This combines several things into one fixpoint iteration: * Upstream IntRangeOptimizations for taking care of things like constant replacement for unit ranges. * Arith canonicalizations. * Local adaptation of signed->unsigned conversion (upstream's version can't compose since it is based on dialect conversion for some reason). It also has 32bit bugs that have been corrected locally. * Int64/unsigned index conversion. * Common factor elision for integer division. * Making the util.assume ops implement InferIntRangeInterface. I have some additional advanced patterns to the side which simplify a lot of torch cases, but they need some more baking/testing, so I'm just landing the basic pass for now to start. --------- Signed-off-by: Stella Laurenzo <[email protected]>
- Loading branch information
1 parent
0889d13
commit 0f28d44
Showing
13 changed files
with
762 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.