We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57b2448 commit e18b903Copy full SHA for e18b903
llvm/lib/Target/AMDGPU/AMDGPUAliasAnalysis.cpp
@@ -85,7 +85,7 @@ AliasResult AMDGPUAAResult::alias(const MemoryLocation &LocA,
85
// variables in shared or private address space.
86
const auto *ObjB =
87
getUnderlyingObject(B.Ptr->stripPointerCastsForAliasAnalysis());
88
- return isIdentifiedObject(ObjB) && ObjA != ObjB ? AliasResult::NoAlias
+ return ObjA != ObjB && isIdentifiedObject(ObjB) ? AliasResult::NoAlias
89
: AliasResult::MayAlias;
90
}
91
default:
0 commit comments