[PATCH] D108925: [AMDGPU] enable scalar compare in truncate selection
Stanislav Mekhanoshin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 31 09:43:42 PDT 2021
rampitec added inline comments.
================
Comment at: llvm/lib/Target/AMDGPU/SIInstructions.td:2112
+ (i1 (UniformUnaryFrag<trunc> i32:$a)),
+ (S_CMP_EQ_U32 (S_AND_B32 (i32 1), $a), (i32 1))
+>;
----------------
alex-t wrote:
> rampitec wrote:
> > I think we can later fold it into
> > ```
> > s_bitcmp1_b32 $a, 0
> > ```
> For now, I would prefer to leave TODO here. Any objections?
No objections, I also do not think we have to select it this way, but rather combine later.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D108925/new/
https://reviews.llvm.org/D108925
More information about the llvm-commits
mailing list