commit | 9bb74b5e1d3403ef83058a181a89763744966597 | [log] [tgz] |
---|---|---|
author | Matthias Springer <springerm@google.com> | Tue Apr 23 22:41:44 2024 +0000 |
committer | Matthias Springer <springerm@google.com> | Tue Apr 23 22:43:05 2024 +0000 |
tree | bdc91803392e5d03e8221047a499172015b02e59 | |
parent | 0c0c5c475857e9cd6a2fe82fd1e46abdb174a1c1 [diff] |
[mlir][Transforms] GreedyPatternRewriteDriver: Add flag to control constant CSE'ing By default, the greedy pattern rewrite driver CSE's constant ops. If an op is CSE'd with an op in a parent region, the op is effectively "hoisted". Over the last years, users have described situations where this is not desirable/necessary. This commit adds a new flag to `GreedyRewriteConfig` that controls CSE'ing of constants. For testing purposes, it is also exposed as a canonicalizer pass flag.
Welcome to the LLVM project!
This repository contains the source code for LLVM, a toolkit for the construction of highly optimized compilers, optimizers, and run-time environments.
The LLVM project has multiple components. The core of the project is itself called “LLVM”. This contains all of the tools, libraries, and header files needed to process intermediate representations and convert them into object files. Tools include an assembler, disassembler, bitcode analyzer, and bitcode optimizer.
C-like languages use the Clang frontend. This component compiles C, C++, Objective-C, and Objective-C++ code into LLVM bitcode -- and from there into object files, using LLVM.
Other components include: the libc++ C++ standard library, the LLD linker, and more.
Consult the Getting Started with LLVM page for information on building and running LLVM.
For information on how to contribute to the LLVM project, please take a look at the Contributing to LLVM guide.
Join the LLVM Discourse forums, Discord chat, LLVM Office Hours or Regular sync-ups.
The LLVM project has adopted a code of conduct for participants to all modes of communication within the project.