Skip to content

Commit 5c37840

Browse files
authored
[NFC][AMDGPU] Add test for unfold-masked-merge-scalar-variablemask.ll (#140093)
This enables DAGCombine to recognize and form and_not + or patterns when hasAndNot is true, allowing better SALU codegen for masked merge idioms. For example: (A & (B ^ C)) ^ C → (A & B) | (~A & C) References: * https://reviews.llvm.org/D45563#change-EG4Z6zDTofCc * https://bugs.llvm.org/show_bug.cgi?id=6773 * https://graphics.stanford.edu/~seander/bithacks.html#MaskedMerge
1 parent e8a2ce1 commit 5c37840

File tree

1 file changed

+779
-0
lines changed

1 file changed

+779
-0
lines changed

0 commit comments

Comments
 (0)