[PATCH] D116529: [GlobalISel] Fold or of shifts with constant amount to funnel shift.
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 4 10:00:35 PST 2022
arsenm added inline comments.
================
Comment at: llvm/test/CodeGen/AMDGPU/GlobalISel/uaddsat.ll:2219
+; GFX6-NEXT: v_mov_b32_e32 v2, s4
+; GFX6-NEXT: v_alignbit_b32 v0, s1, v0, 16
+; GFX6-NEXT: v_alignbit_b32 v1, s3, v1, 16
----------------
foad wrote:
> Maybe not your fault, but it's a bad idea to use a VALU instruction for uniform values, especially if it means we need to insert readfirstlanes.
should probably do this in the post-regbank combiner
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D116529/new/
https://reviews.llvm.org/D116529
More information about the llvm-commits
mailing list