-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Lang] Migrate irpass::scalarize() after irpass::offload() (#7919)
Issue: # ### Brief Summary <!-- copilot:summary --> ### <samp>🤖 Generated by Copilot at c9e5993</samp> This pull request refactors scalarization for matrix operations to optimize different backends. It moves scalarization from `compile_to_offloads` to `compile_to_executable` for LLVM, and keeps it in `compile_to_offloads` for Metal. ### Walkthrough <!-- copilot:walkthrough --> ### <samp>🤖 Generated by Copilot at c9e5993</samp> * Remove scalarization before offloading for non-Metal backends ([link](https://github.com/taichi-dev/taichi/pull/7919/files?diff=unified&w=0#diff-8fde186587db97b3bbc8a856e59bc4467b30257335b0fad064b4eebd521a912bL126-L133)) * Add scalarization before offloading for Metal backend only ([link](https://github.com/taichi-dev/taichi/pull/7919/files?diff=unified&w=0#diff-8fde186587db97b3bbc8a856e59bc4467b30257335b0fad064b4eebd521a912bR138-R145))
- Loading branch information
1 parent
b248442
commit 1ee025b
Showing
3 changed files
with
67 additions
and
36 deletions.
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