llvm-D49832-SCEVPred
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Sun, 26 Aug 2018 12:00:14 +0000 (13:00 +0100)
committerSylvestre Ledru <sylvestre@debian.org>
Sun, 26 Aug 2018 12:00:14 +0000 (13:00 +0100)
commit18df2f195b8205e6d60586215749e0e71e27a3c0
tree144e12579e1f68a05bfed884a5b82fd34fbd0c9c
parent9c4edd16d269bf4d368d8187c03a805bbe61fbb2
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