[PATCH] D107486: [DAGCombiner][AMDGPU] Canonicalize constants to the RHS of MULHU/MULHS.

Jay Foad via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 4 11:30:23 PDT 2021


foad accepted this revision.
foad added a comment.
This revision is now accepted and ready to land.

LGTM, thanks!



================
Comment at: llvm/test/CodeGen/AMDGPU/sdiv64.ll:1211
+; GCN-NEXT:    v_addc_u32_e32 v2, vcc, v2, v3, vcc
 ; GCN-NEXT:    v_add_i32_e32 v0, vcc, 0, v0
 ; GCN-NEXT:    v_addc_u32_e32 v0, vcc, 0, v2, vcc
----------------
Looks like there is some further cleanup possible here. This instruction is "add 0 with carry out" which is pretty useless.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D107486/new/

https://reviews.llvm.org/D107486



More information about the llvm-commits mailing list