[llvm] [AMDGPU] Implement hasAndNot for scalar bitwise AND-NOT operations. (PR #112647)
Harrison Hao via llvm-commits
llvm-commits at lists.llvm.org
Tue May 13 05:18:36 PDT 2025
================
@@ -16890,3 +16890,11 @@ SITargetLowering::lowerIdempotentRMWIntoFencedLoad(AtomicRMWInst *AI) const {
AI->eraseFromParent();
return LI;
}
+
+bool SITargetLowering::hasAndNot(SDValue Op) const {
+ if (Op->isDivergent())
+ return false;
+
----------------
harrisonGPU wrote:
Thanks! Do you have any further suggestions? Also, do you think it's ready to be merged now? :-)
https://github.com/llvm/llvm-project/pull/112647
More information about the llvm-commits
mailing list