OSDN Git Service

Teach SCEV to look through returned-argument functions
authorHal Finkel <hfinkel@anl.gov>
Mon, 11 Jul 2016 02:48:23 +0000 (02:48 +0000)
committerHal Finkel <hfinkel@anl.gov>
Mon, 11 Jul 2016 02:48:23 +0000 (02:48 +0000)
commit837551f8d61cbdbe2de999b295f2d48c4d0db02e
treec18c439ce2e6d4daca7b1ca5c598afaf8077093a
parentd90d6130ff7a3fe11f4513ddeb9f054bfd5acac4
Teach SCEV to look through returned-argument functions

When building SCEVs, if a function is known to return its argument, then we can
build the SCEV using the corresponding argument value.

Differential Revision: http://reviews.llvm.org/D9381

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@275037 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ScalarEvolution.cpp
test/Analysis/ScalarEvolution/returned.ll [new file with mode: 0644]