Skip to content

Commit 9ca0550

Browse files
bokrzesiigcbot
authored andcommitted
[LLVM16] [LITS] Remove invalid null check in AliasAnalysis LLVM wrapper
Porting IGC code to LLVM16 This NULL check is not valid because LLVM's AliasAnalysis originally performs such a call on 16: ``` AliasResult AAResults::alias(const MemoryLocation &LocA, const MemoryLocation &LocB) { SimpleAAQueryInfo AAQIP(*this); return alias(LocA, LocB, AAQIP, nullptr); } ``` where nullPtr = const Instruction *CtxI FYI: On LLVM 14 it is just ``` AliasResult AAResults::alias(const MemoryLocation &LocA, const MemoryLocation &LocB) { SimpleAAQueryInfo AAQIP; return alias(LocA, LocB, AAQIP); } ``` Fixes: AddressSpaceAliasAnalysis/rt-basic.ll
1 parent 61d495c commit 9ca0550

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

IGC/WrapperLLVM/include/llvmWrapper/Analysis/AliasAnalysis.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ namespace IGCLLVM
4242
#endif
4343
) {
4444
#if LLVM_VERSION_MAJOR >= 16
45-
IGC_ASSERT_MESSAGE(CtxI != nullptr, "CtxI is null");
4645
return llvm::AAResultBase::alias(LocA, LocB, AAQI, CtxI);
4746
#else
4847
return llvm::AAResultBase<T>::alias(LocA, LocB, AAQI);

0 commit comments

Comments
 (0)