-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Mosaic TPU] Canonicalize arith.select's condition to vector if other…
… types are vector. This fixes the failure in elementwise rule of apply vector layout pass. If the condition scalar is static, it will be simplified to corresponding vector from true value and false value by MLIR. If the condition scalar is dynamic, we want to use vselect over scf.if anyway. Because latter creates a inner region. PiperOrigin-RevId: 680674560
- Loading branch information
1 parent
bdae9ac
commit 7e2f487
Showing
2 changed files
with
45 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