Skip to content

Commit

Permalink
Cast of addr13 (#2147)
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses authored Nov 3, 2024
1 parent b6ab325 commit 1bcf5ee
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions enzyme/Enzyme/DifferentialUseAnalysis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -917,6 +917,15 @@ void DifferentialUseAnalysis::minCut(const DataLayout &DL, LoopInfo &OrigLI,
if (ASC->getSrcAddressSpace() == 10 && ASC->getDestAddressSpace() == 0)
continue;
}
if (auto CI = dyn_cast<CastInst>((*mp.begin()).V)) {
if (CI->getType()->isPointerTy() &&
CI->getType()->getPointerAddressSpace() == 13)
continue;
}
if (auto G = dyn_cast<GetElementPtrInst>((*mp.begin()).V)) {
if (G->getType()->getPointerAddressSpace() == 13)
continue;
}
if (hasNoCache((*mp.begin()).V)) {
continue;
}
Expand Down

0 comments on commit 1bcf5ee

Please sign in to comment.