-
Notifications
You must be signed in to change notification settings - Fork 14.3k
[Matrix] Propagate shape information through PHI insts #141681
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+844
−263
Merged
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
b1b79aa
[Matrix] Propagate shape information through PHI instructions
jroelofs 71b99d3
move formerly unsupported test to new home
jroelofs 905c1e9
clang-format
jroelofs 9ee44f0
add test for ConstantDataVector lowering
jroelofs 169960d
move report_fatal_error outside of NDEBUG block
jroelofs b64a134
Merge branch 'main' into jroelofs/lower-matrix-phi
jroelofs 18951cd
fix bad merge
jroelofs f8aea05
use col major load intrinsics
jroelofs e56b225
add tests for phi's consuming phi's, and phi's with more than two inputs
jroelofs ffbc73f
handle phi's more like other ops. instcombine will clean up after us
jroelofs 15fd60b
handle phi's with shape mismatch
jroelofs 88bd8cb
Merge branch 'main' into jroelofs/lower-matrix-phi
jroelofs 655eb88
simplify getMatrix shim
jroelofs e262f76
test the other order of shape mismatch
jroelofs 2c86c2f
clang-format
jroelofs 86d3545
Merge remote-tracking branch 'origin/main' into jroelofs/lower-matrix…
jroelofs 501414f
Merge remote-tracking branch 'origin/main' into jroelofs/lower-matrix…
jroelofs 2e5b2d4
clang-format
jroelofs f048181
Merge remote-tracking branch 'origin/main' into jroelofs/lower-matrix…
jroelofs 7511d17
Merge remote-tracking branch 'origin/main' into jroelofs/lower-matrix…
jroelofs 2821467
Merge remote-tracking branch 'origin/main' into jroelofs/lower-matrix…
jroelofs 4ba4e66
[Matrix] Fix a crash in VisitSelectInst due to iteration length mismatch
jroelofs 4cbc839
review feedback: parens for initializer
jroelofs 6f8ec49
review feedback: rename to GetMatrix
jroelofs 104c126
Merge remote-tracking branch 'origin/main' into jroelofs/lower-matrix…
jroelofs 67ead37
drop code for splitting constants, add test for it
jroelofs c9b3992
split phi's in two phases
jroelofs da17d10
Merge remote-tracking branch 'origin/main' into jroelofs/lower-matrix…
jroelofs dd55682
clang-format
jroelofs 08be3b4
Merge branch 'main' into jroelofs/lower-matrix-phi
jroelofs 5a991f7
rm constant.ll
jroelofs e9d0e62
test that shows reshape shuffles are inserted in the correct spot
jroelofs a760840
florian's suggestion is a little simpler: we already know it's a phi
jroelofs a62ef50
also use getInsertionPointAtDef() for non-inst phi operand reshape pl…
jroelofs 47dd2e2
inline the lambda shim, to simplify
jroelofs 0debc08
rm unnecessary include
jroelofs File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We were missing an early continue here if Inst is in FusedInsts, which prevents heap-use-after-free if Inst has been removed before. W/o that, the tests fail with ASan. Should be fixed in 0816bb3