[PATCH] D146737: [AMDGPU] Default component broadcast store

Mateja Marjanovic via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 27 06:59:39 PDT 2023


matejam added inline comments.


================
Comment at: llvm/lib/Target/AMDGPU/AMDGPUInstCombineIntrinsic.cpp:365
+
+  while (!isa<UndefValue>(FirstArg)) {
+    CurInst = dyn_cast<Instruction>(FirstArg);
----------------
foad wrote:
> I wonder if the whole of this loop could be replaced by calling llvm::computeKnownBits with an appropriate DemandedElts mask to test each element from the last to the first.
I looked that up.
computeKnownBits works only for integers, pointers and vector of integers.


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

https://reviews.llvm.org/D146737



More information about the llvm-commits mailing list