llvm-D49832-SCEVPred
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Fri, 15 May 2020 16:25:16 +0000 (17:25 +0100)
committerScott Kitterman <scott@kitterman.com>
Fri, 15 May 2020 16:25:16 +0000 (17:25 +0100)
commit5a6e9dd7642f54410a53e84205f5a722a066fd8c
treee5c76253dd5ff6007f38a66408d1fc54039cdec4
parent1a2bb6dccc54e25867763a692aa9bb227902be8b
llvm-D49832-SCEVPred

commit 98592fcc61307968f7df1362771534595a1e1c21
Author: Keno Fischer <keno@juliacomputing.com>
Date:   Wed Jul 25 19:29:02 2018 -0400

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

    Summary:
    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

    Reviewers: reames, sanjoy

    Subscribers: javed.absar, llvm-commits

    Differential Revision: https://reviews.llvm.org/D49832

Gbp-Pq: Name llvm-D49832-SCEVPred.patch
lib/Analysis/ScalarEvolutionExpander.cpp
test/Analysis/LoopAccessAnalysis/wrapping-pointer-ni.ll [new file with mode: 0644]
test/Analysis/LoopAccessAnalysis/wrapping-pointer-versioning.ll