[PATCH] D33737: [InstSimplify] Don't constant fold or DCE calls that are marked nobuiltin

Andy Kaylor via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 1 12:36:43 PDT 2017


andrew.w.kaylor updated this revision to Diff 101079.
andrew.w.kaylor edited the summary of this revision.
andrew.w.kaylor added a comment.

Re-wrote the patch to move the isNoBuiltin checks into canConstantFoldCallTo and ConstantFoldCall.


Repository:
  rL LLVM

https://reviews.llvm.org/D33737

Files:
  include/llvm/Analysis/ConstantFolding.h
  include/llvm/Analysis/InstructionSimplify.h
  lib/Analysis/ConstantFolding.cpp
  lib/Analysis/InlineCost.cpp
  lib/Analysis/InstructionSimplify.cpp
  lib/Analysis/ScalarEvolution.cpp
  lib/Transforms/InstCombine/InstCombineCalls.cpp
  lib/Transforms/Scalar/SCCP.cpp
  lib/Transforms/Utils/Evaluator.cpp
  test/Transforms/DCE/calls-errno.ll
  test/Transforms/InstCombine/constant-fold-libfunc.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D33737.101079.patch
Type: text/x-patch
Size: 11276 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170601/d3422e4a/attachment.bin>


More information about the llvm-commits mailing list