[llvm] [AMDGPU] make AMDGPUUniformIntrinsicCombine a function pass (PR #165265)
Pankaj Dwivedi via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 28 02:39:37 PDT 2025
================
@@ -97,14 +91,12 @@ static bool optimizeUniformIntrinsic(IntrinsicInst &II,
Tracker[NotOp] = true; // NOT preserves uniformity
LLVM_DEBUG(dbgs() << "Replacing ICMP_EQ: " << *NotOp << '\n');
ICmp->replaceAllUsesWith(NotOp);
- ICmp->eraseFromParent();
----------------
PankajDwivedi-25 wrote:
No, somehow `early_inc_range` could not prevent it here. I feel it's okay; it will be taken care of by the following pass.
https://github.com/llvm/llvm-project/pull/165265
More information about the llvm-commits
mailing list