[PATCH] D61812: [AMDGPU] Fixed handling of imemdiate i1 literals
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue May 14 09:06:56 PDT 2019
arsenm accepted this revision.
arsenm added a comment.
This revision is now accepted and ready to land.
LGTM
================
Comment at: test/CodeGen/AMDGPU/xor3-i1-const.ll:3
+
+; This test uses to crash
+; GCN-LABEL: {{^}}xor3_i1_const:
----------------
Grammar
================
Comment at: test/CodeGen/AMDGPU/xor3-i1-const.ll:9-19
+ %tmp26 = fcmp nsz olt float %arg1, 0.000000e+00
+ %tmp28 = call nsz float @llvm.amdgcn.interp.p2(float undef, float undef, i32 0, i32 0, i32 %arg2)
+ %tmp29 = fcmp nsz olt float %arg1, 5.700000e+01
+ %tmp31 = fcmp nsz olt float %tmp28, 0.000000e+00
+ %.demorgan = and i1 %tmp26, %tmp29
+ %tmp34 = xor i1 %.demorgan, true
+ %tmp35 = and i1 %tmp31, %tmp34
----------------
This could probably be reduced a bit
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D61812/new/
https://reviews.llvm.org/D61812
More information about the llvm-commits
mailing list