Skip to content

Commit 609ac2f

Browse files
committed
Add comment
1 parent 94cab66 commit 609ac2f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/Target/AMDGPU/SIInstructions.td

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3104,6 +3104,8 @@ def : GCNPat <
31043104
(i32 (EXTRACT_SUBREG $a, sub0))), (i32 1))
31053105
>;
31063106

3107+
// This pattern for bswap is used for pre-GFX8. For GFX8+, bswap is mapped
3108+
// to V_PERM_B32.
31073109
let True16Predicate = NotHasTrue16BitInsts in
31083110
def : GCNPat <
31093111
(i32 (bswap i32:$a)),

0 commit comments

Comments
 (0)