[llvm] [AMDGPU] Fix wrong uniformity for ballot NOT in UniformIntrinsicCombine (PR #220009)
Jay Foad via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 17 06:49:35 PDT 2026
================
@@ -86,7 +86,10 @@ static bool optimizeUniformIntrinsic(IntrinsicInst &II, UniformityInfo &UI,
// Case: (icmp eq %ballot, 0) -> xor %ballot_arg, 1
Instruction *NotOp =
BinaryOperator::CreateNot(Src, "", ICmp->getIterator());
----------------
jayfoad wrote:
Oh, I see, then the whole concept of "isDivergentUseWithNew" is broken if it does not handle temporal divergence.
https://github.com/llvm/llvm-project/pull/220009
More information about the llvm-commits
mailing list