[PATCH] D69748: [Attributor][IPConstantProp] Run the Attributor on IPConstantProp tests

Johannes Doerfert via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 1 23:43:35 PDT 2019


jdoerfert created this revision.
jdoerfert added reviewers: fhahn, efriedma, mssimpso, davide.
Herald added a subscriber: bollu.
Herald added a project: LLVM.
jdoerfert added a parent revision: D69747: [IPConstantProp][NFCI] Improve and modernize tests.

The Attributor can, to some degree, do what IPConstantProp does. We can
consequently use the corner cases already collected and tested for in
the IPConstantProp tests to improve Attributor test coverage.

This exposed various bugs fixed in previous Attributor patches.

Not all functionality of IPConstantProp is available in AAValueSimplify
and AAIsDead so some tests show that we cannot perform the expected
constant propagation.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D69748

Files:
  llvm/test/Transforms/IPConstantProp/2008-06-09-WeakProp.ll
  llvm/test/Transforms/IPConstantProp/2009-09-24-byval-ptr.ll
  llvm/test/Transforms/IPConstantProp/PR16052.ll
  llvm/test/Transforms/IPConstantProp/PR26044.ll
  llvm/test/Transforms/IPConstantProp/arg-count-mismatch.ll
  llvm/test/Transforms/IPConstantProp/arg-type-mismatch.ll
  llvm/test/Transforms/IPConstantProp/comdat-ipo.ll
  llvm/test/Transforms/IPConstantProp/dangling-block-address.ll
  llvm/test/Transforms/IPConstantProp/deadarg.ll
  llvm/test/Transforms/IPConstantProp/fp-bc-icmp-const-fold.ll
  llvm/test/Transforms/IPConstantProp/global.ll
  llvm/test/Transforms/IPConstantProp/musttail-call.ll
  llvm/test/Transforms/IPConstantProp/naked-return.ll
  llvm/test/Transforms/IPConstantProp/openmp_parallel_for.ll
  llvm/test/Transforms/IPConstantProp/pthreads.ll
  llvm/test/Transforms/IPConstantProp/recursion.ll
  llvm/test/Transforms/IPConstantProp/remove-call-inst.ll
  llvm/test/Transforms/IPConstantProp/return-argument.ll
  llvm/test/Transforms/IPConstantProp/return-constant.ll
  llvm/test/Transforms/IPConstantProp/return-constants.ll
  llvm/test/Transforms/IPConstantProp/solve-after-each-resolving-undefs-for-function.ll
  llvm/test/Transforms/IPConstantProp/user-with-multiple-uses.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D69748.227572.patch
Type: text/x-patch
Size: 20376 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191102/33300ebe/attachment.bin>


More information about the llvm-commits mailing list