[PATCH] D152702: AMDGPU: Add basic folds for llvm.amdgcn.log
Jay Foad via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 12 05:20:32 PDT 2023
foad accepted this revision.
foad added inline comments.
This revision is now accepted and ready to land.
================
Comment at: llvm/lib/Target/AMDGPU/AMDGPUInstCombineIntrinsic.cpp:457
+ if (isa<PoisonValue>(Src))
+ return IC.replaceInstUsesWith(II, PoisonValue::get(Ty));
+
----------------
Could use Src instead of creating a new poison?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D152702/new/
https://reviews.llvm.org/D152702
More information about the llvm-commits
mailing list