[RS4GC] Simplify handling of Constants in findBaseDefiningValue(). NFC.
authorManuel Jacob <me@manueljacob.de>
Tue, 5 Jan 2016 04:06:21 +0000 (04:06 +0000)
committerManuel Jacob <me@manueljacob.de>
Tue, 5 Jan 2016 04:06:21 +0000 (04:06 +0000)
commit3bab5f489eb3c8413ae74927cd495523618e069d
tree086b98ed332b5810779ef835ac02dbede89c0c64
parent397864c7122838ca2afd0ceb61efeee540c37948
[RS4GC] Simplify handling of Constants in findBaseDefiningValue().  NFC.

Summary:
Previously there were three conditionals, checking for global
variables, undef values and everything constant except these two, all three
returning the same value.  This commit replaces them by one conditional.

Reviewers: reames

Subscribers: llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256812 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/RewriteStatepointsForGC.cpp