[PATCH] D30928: Templatize parts of VNCoercion, and add constant-only versions of the functions to be used in NewGVN.NFCI.
Daniel Berlin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 13 21:58:44 PDT 2017
dberlin created this revision.
Herald added a subscriber: Prazek.
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.
https://reviews.llvm.org/D30928
Files:
include/llvm/Transforms/Utils/VNCoercion.h
lib/Transforms/Scalar/GVN.cpp
lib/Transforms/Utils/VNCoercion.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D30928.91675.patch
Type: text/x-patch
Size: 17931 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170314/80aa959d/attachment.bin>
More information about the llvm-commits
mailing list