OSDN Git Service

[SCEVExpander] Try harder to avoid introducing inttoptr
authorKeno Fischer <keno@alumni.harvard.edu>
Sat, 27 May 2017 03:22:55 +0000 (03:22 +0000)
committerKeno Fischer <keno@alumni.harvard.edu>
Sat, 27 May 2017 03:22:55 +0000 (03:22 +0000)
commit65ac22c1e22be37958d6af295b186f5e0302d2b2
tree12a5704bad8f32a8ba791495328ef21607c1d340
parent0248ff99fa40d0e1edcde796419b5e7ef971f71b
[SCEVExpander] Try harder to avoid introducing inttoptr

Summary:
This fixes introduction of an incorrect inttoptr/ptrtoint pair in
the included test case which makes use of non-integral pointers. I
suspect there are more cases like this left, but this takes care of
the one I was seeing at the moment.

Reviewers: sanjoy

Subscribers: mzolotukhin, llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@304058 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ScalarEvolutionExpander.cpp
test/Transforms/LoopStrengthReduce/nonintegral.ll [new file with mode: 0644]
unittests/Analysis/ScalarEvolutionTest.cpp