[PATCH] D43457: [Evaluator] Improve evaluation of load/store
Eugene Leviant via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 7 11:30:03 PST 2018
evgeny777 updated this revision to Diff 137443.
evgeny777 added a comment.
Unfortunately `ConstantFoldLoadFromConstPtr` seems to be useful, because it checks for GV initializer being constant and we're not forced by this constraint when evaluating static ctors.
However it turned out we can use `ConstantFoldLoadThroughBitcast` when evaluating both load and store.
https://reviews.llvm.org/D43457
Files:
include/llvm/Analysis/ConstantFolding.h
lib/Analysis/ConstantFolding.cpp
lib/Transforms/Utils/Evaluator.cpp
test/Transforms/GlobalOpt/evaluate-bitcast.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43457.137443.patch
Type: text/x-patch
Size: 8049 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180307/6e925bba/attachment.bin>
More information about the llvm-commits
mailing list