aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/InlineFunction.cpp
diff options
context:
space:
mode:
authorDaniel Berlin <dberlin@dberlin.org>2017-03-20 16:08:29 +0000
committerDaniel Berlin <dberlin@dberlin.org>2017-03-20 16:08:29 +0000
commit12883b1673731839303444ad04984cf81dab396c (patch)
tree31690f9605bb83368614cd2b45456ad83d3a036e /llvm/lib/Transforms/Utils/InlineFunction.cpp
parent6b42b3b7a3577d3d61a6d7552f147b6d2afef737 (diff)
downloadllvm-12883b1673731839303444ad04984cf81dab396c.zip
llvm-12883b1673731839303444ad04984cf81dab396c.tar.gz
llvm-12883b1673731839303444ad04984cf81dab396c.tar.bz2
Templatize parts of VNCoercion, and add constant-only versions of the functions to be used in NewGVN.
NFCI. Summary: This is ground work for the changes to enable coercion in NewGVN. GVN doesn't care if they end up constant because it eliminates as it goes. NewGVN cares. IRBuilder and ConstantFolder deliberately present the same interface, so we use this to our advantage to templatize our functions to make them either constant only or not. Reviewers: davide Subscribers: llvm-commits, Prazek Differential Revision: https://reviews.llvm.org/D30928 llvm-svn: 298262
Diffstat (limited to 'llvm/lib/Transforms/Utils/InlineFunction.cpp')
0 files changed, 0 insertions, 0 deletions