forked from GPUOpen-Drivers/llpc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[LLPC] Fully scalarize compares and selects
A while back, we switch to no longer always fully scalarizing in order to preserve packed 16-bit operations. This had the effect that comparisons and selects were no longer scalarized due to limitations in LLVM's ScalarizerPass. And it seems that there is some correctness error, most likely somewhere else in the backend, which unfortunately hasn't been fully root caused. In any case, there are no packed compares and (vector condition) selects, and fully scalarizing them tends to produce better code. So let's do that explicitly in the frontend as a quick fix. Fixes: Red Dead Redemption with FSR 2.0 Fixes: c8f8da9 ("lgc: set scalarizer min-bits to 32")
- Loading branch information
Showing
29 changed files
with
823 additions
and
386 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
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.