[PATCH] D46584: [Evaluator] Improve evaluation of call instruction

Eugene Leviant via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 20 07:04:02 PDT 2018


evgeny777 updated this revision to Diff 152078.
evgeny777 added a comment.

Thanks for looking at it @tejohnson. Sorry I was too busy to respond earlier. 
I've added extra test case to check function calls which can be constant folded. 
The `substCallExprArgument` was changed to `castCallResultIfNeeded` which might sound more reasonable.


https://reviews.llvm.org/D46584

Files:
  include/llvm/Transforms/Utils/Evaluator.h
  lib/Transforms/Utils/Evaluator.cpp
  test/Transforms/GlobalOpt/evaluate-call.ll
  test/Transforms/GlobalOpt/evaluate-constfold-call.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46584.152078.patch
Type: text/x-patch
Size: 7791 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180620/b854c733/attachment.bin>


More information about the llvm-commits mailing list