[PATCH] D49832: [SCEV] Don't expand Wrap predicate using inttoptr in ni addrspaces

Keno Fischer via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 25 19:19:48 PDT 2018


loladiro created this revision.
loladiro added reviewers: reames, sanjoy.
Herald added a subscriber: javed.absar.

In non-integral address spaces, we're not allowed to introduce inttoptr/ptrtoint
intrinsics. Instead, we need to expand any pointer arithmetic as geps on the
base pointer. Luckily this is a common task for SCEV, so all we have to do here
is hook up the corresponding helper function and add test case.

Fixes PR38290


Repository:
  rL LLVM

https://reviews.llvm.org/D49832

Files:
  lib/Analysis/ScalarEvolutionExpander.cpp
  test/Analysis/LoopAccessAnalysis/wrapping-pointer-ni.ll
  test/Analysis/LoopAccessAnalysis/wrapping-pointer-versioning.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49832.157417.patch
Type: text/x-patch
Size: 7732 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180726/70083040/attachment.bin>


More information about the llvm-commits mailing list