================
@@ -264,7 +264,9 @@ def S_BREV_B64 : SOP1_64 <"s_brev_b64",
 } // End isReMaterializable = 1, isAsCheapAsAMove = 1
 
 let Defs = [SCC] in {
-def S_BCNT0_I32_B32 : SOP1_32 <"s_bcnt0_i32_b32">;
+def S_BCNT0_I32_B32 : SOP1_32 <"s_bcnt0_i32_b32",
+  [(set i32:$sdst, (UniformBinFrag<sub> 32, (UniformUnaryFrag<ctpop> 
i32:$src0)))]
----------------
jayfoad wrote:

You don't need both UniformFrags. Standard practice is to put it only on the 
outermost expression:

```suggestion
  [(set i32:$sdst, (UniformBinFrag<sub> 32, (ctpop i32:$src0)))]
```
(In this particular case I think it would also work to put it only on the inner 
expression, but let's not do that.)

https://github.com/llvm/llvm-project/pull/164847
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to