[llvm] [AMDGPU] Implement hasAndNot for scalar bitwise AND-NOT operations. (PR #112647)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Tue May 13 09:01:54 PDT 2025
================
@@ -17561,3 +17561,13 @@ SITargetLowering::lowerIdempotentRMWIntoFencedLoad(AtomicRMWInst *AI) const {
AI->eraseFromParent();
return LI;
}
+
+bool SITargetLowering::hasAndNot(SDValue Op) const {
+ // Return false if the operation is divergent, as AND-NOT is a scalar-only
+ // instruction.
----------------
arsenm wrote:
First part of the comment is describing the mechanics, not the reason
https://github.com/llvm/llvm-project/pull/112647
More information about the llvm-commits
mailing list