[PATCH] D64963: Add a pass to lower is.constant intrinsics

Bill Wendling via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 18 17:08:01 PDT 2019


void created this revision.
void added reviewers: joerg, chandlerc.
Herald added a reviewer: whitequark.
Herald added a reviewer: deadalnix.
Herald added subscribers: llvm-commits, 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'. We
want to convert to 'true' early in the pipeline and 'false' late in the
pipeline. In other words, if right before code generation we cannot
definitively prove that the argument is constant, then we will lower to
'false'.


Repository:
  rL LLVM

https://reviews.llvm.org/D64963

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/InitializePasses.h
  include/llvm/LinkAllPasses.h
  include/llvm/Transforms/Scalar.h
  include/llvm/Transforms/Scalar/LowerIsConstantIntrinsic.h
  lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp
  lib/Passes/PassBuilder.cpp
  lib/Passes/PassRegistry.def
  lib/Transforms/Scalar/CMakeLists.txt
  lib/Transforms/Scalar/LowerIsConstantIntrinsic.cpp
  lib/Transforms/Scalar/Scalar.cpp
  test/CodeGen/X86/callbr-asm-obj-file.ll
  test/CodeGen/X86/callbr-asm.ll
  utils/gn/secondary/llvm/lib/Transforms/Scalar/BUILD.gn

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64963.210705.patch
Type: text/x-patch
Size: 15337 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190719/a21b8815/attachment.bin>


More information about the llvm-commits mailing list