[PATCH] D156077: [AMDGPU] Perform basic folds on llvm.amdgcn.wave.reduce.umin/umax.

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 24 05:52:56 PDT 2023


arsenm added inline comments.


================
Comment at: llvm/lib/Target/AMDGPU/AMDGPUInstCombineIntrinsic.cpp:1144
+    // Propagate poison and constant value
+    if (isa<PoisonValue>(Src) || isa<Constant>(Src))
+      return IC.replaceInstUsesWith(II, Src);
----------------
isa<Constant> covers isa<Poison>


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D156077



More information about the llvm-commits mailing list