[PATCH] D58233: Allow replacing intrinsic operands with variables

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 14 05:27:55 PST 2019


arsenm created this revision.
arsenm added reviewers: hfinkel, efriedma, spatel.
Herald added a subscriber: wdng.
arsenm added a parent revision: D57825: IR: Add immarg attribute.

Since intrinsics can now specify when an argument is required to be
constant, it is now OK to replace arguments with variables if they
aren't. This means intrinsics must now be accurately marked with
immarg.


https://reviews.llvm.org/D58233

Files:
  include/llvm/IR/CallSite.h
  lib/Transforms/Scalar/ConstantHoisting.cpp
  lib/Transforms/Utils/Local.cpp
  test/Transforms/GVNSink/indirect-call.ll
  test/Transforms/SimplifyCFG/sink-common-code.ll
  unittests/Transforms/Utils/LocalTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58233.186825.patch
Type: text/x-patch
Size: 7058 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190214/ba3fcda5/attachment.bin>


More information about the llvm-commits mailing list