[PATCH] D94746: [AMDGPU] Move kill lowering to WQM pass and add live mask tracking

Piotr Sobczak via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 15 03:28:16 PST 2021


piotr added inline comments.


================
Comment at: llvm/test/CodeGen/AMDGPU/llvm.amdgcn.kill.ll:87
+; GCN: v_cmp_lg_f32
 define amdgpu_gs void @oeq(float %a) {
   %c1 = fcmp oeq float %a, 0.0
----------------
The generated code for this test (and a few others) is slightly unexpected (all three patches combined):

Before:
        v_cmpx_lt_f32_e32 vcc, 0, v0

After:
        v_cmp_gt_f32_e32 vcc, 0, v0
        s_andn2_b64 exec, exec, vcc
        s_andn2_b64 exec, exec, vcc


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D94746



More information about the llvm-commits mailing list