[llvm] [AMDGPU] Implement hasAndNot for scalar bitwise AND-NOT operations. (PR #112647)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 17 00:40:09 PDT 2024
================
@@ -16890,3 +16890,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 optimization
+ // requires uniform behavior across threads.
----------------
arsenm wrote:
More that it's a scalar only instruction
https://github.com/llvm/llvm-project/pull/112647
More information about the llvm-commits
mailing list