[PATCH] D65280: Add a pass to lower is.constant intrinsics Needs ReviewPublic

Joerg Sonnenberger via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 25 06:54:37 PDT 2019


joerg created this revision.
joerg added reviewers: chandlerc, whitequark, void, deadalnix.
Herald added subscribers: hiraditya, mgorny.
Herald added a project: LLVM.

THIS IS A WORK IN PROGRESS. NOT FOR SUBMISSION.

This pass lowers the is.constant intrinsics into 'true' or 'false'. The API change to instruction simplify needs review and that part should likely also handle select, but this version works well enough to pass the motivating problems. The restart is known to be crude too. This is an extension of the base work in D64963 <https://reviews.llvm.org/D64963>, but I don't want to hijack that one.


Repository:
  rL LLVM

https://reviews.llvm.org/D65280

Files:
  bindings/ocaml/transforms/scalar_opts/llvm_scalar_opts.mli
  bindings/ocaml/transforms/scalar_opts/scalar_opts_ocaml.c
  include/llvm-c/Transforms/Scalar.h
  include/llvm/Analysis/InstructionSimplify.h
  include/llvm/InitializePasses.h
  include/llvm/LinkAllPasses.h
  include/llvm/Transforms/Scalar.h
  include/llvm/Transforms/Scalar/LowerIsConstantIntrinsic.h
  lib/Analysis/InstructionSimplify.cpp
  lib/CodeGen/TargetPassConfig.cpp
  lib/Passes/PassBuilder.cpp
  lib/Passes/PassRegistry.def
  lib/Transforms/Scalar/CMakeLists.txt
  lib/Transforms/Scalar/LowerIsConstantIntrinsic.cpp
  lib/Transforms/Scalar/Scalar.cpp
  utils/gn/secondary/llvm/lib/Transforms/Scalar/BUILD.gn

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D65280.211739.patch
Type: text/x-patch
Size: 18819 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190725/29de6cfa/attachment-0001.bin>


More information about the llvm-commits mailing list