llvm with tablegen backend for capstone disassembler
Go to file
Philip Reames 53e9a5ddc0 [LSR] Fix "new use of poison" problem in lsr-term-fold
This models the approach used in LFTR. The short summary is that we need to prove the IV is not dead first, and then we have to either prove the poison flag is valid after the new user or delete it.

There are two key differences between this and LFTR.

First, I allow a non-concrete start to the IV. The goal of LFTR is to canonicalize and IVs with constant starts are canonical, so the very restrictive definition there is mostly okay. Here on the other hand, we're explicitly moving *away* from the canonical form, and thus need to handle non-constant starts.

Second, LFTR bails out instead of removing inbounds on a GEP. This is a pragmatic tradeoff since inbounds is hard to infer and assists aliasing. This pass runs very late, and I think the tradeoff runs the other way.

A different approach we could take for the post-inc check would be to perform a pre-inc check instead of a post-inc check. We would still have to check the pre-inc IV, but that would avoid the need to drop inbounds. Doing the pre-inc check would basically trade killing a whole IV for an extra register move in the loop. I'm open to suggestions on the right approach here.

Note that this analysis is quite expensive compile time wise. I have made no effort to optimize (yet).

Differential Revision: https://reviews.llvm.org/D146464
2023-03-21 08:23:40 -07:00
.github workflows: Don't try and run llvm-bugs in forks 2023-03-16 16:47:07 +00:00
bolt [BOLT] Reject symbols pointing to section end 2023-03-21 13:59:39 +04:00
clang inline stmt attribute diagnosing in templates 2023-03-21 08:16:52 -07:00
clang-tools-extra [clangd][NFC] Format & include cleanup for AddUsingTests.cpp 2023-03-21 07:53:08 +01:00
cmake Revert "[CMake] Unify llvm_check_linker_flag and llvm_check_compiler_linker_flag" 2023-03-12 13:27:23 +07:00
compiler-rt Fix Windows export list. 2023-03-20 19:20:43 -07:00
cross-project-tests [Dexter] Add a simple logging class to Dexter 2023-03-15 19:25:37 +00:00
flang [flang] Carry over dynamic type information when creating an unlimited polymorphic temp 2023-03-21 16:08:07 +01:00
libc [libc] temporarily disable wctob entrypoint 2023-03-20 17:42:00 -07:00
libclc Revert "Reland "[CMake] Bumps minimum version to 3.20.0."" 2023-03-18 20:32:43 +01:00
libcxx [libc++] Change linkage for some functions. 2023-03-19 19:50:05 +01:00
libcxxabi [libcxxabi] Fix for c9d36bd807 2023-03-20 13:00:33 +00:00
libunwind [libunwind][Modules] Add unwind_arm_ehabi.h and unwind_itanium.h to the unwind module) 2023-03-20 15:13:14 -07:00
lld Revert "Reland "[CMake] Bumps minimum version to 3.20.0."" 2023-03-18 20:32:43 +01:00
lldb [lldb] For native compiles, check signal numbers are correct when adding codes 2023-03-21 14:31:21 +00:00
llvm [LSR] Fix "new use of poison" problem in lsr-term-fold 2023-03-21 08:23:40 -07:00
llvm-libgcc Revert "Reland "[CMake] Bumps minimum version to 3.20.0."" 2023-03-18 20:32:43 +01:00
mlir [mlir] tosa.concat - Add InferTensorType interface 2023-03-21 17:01:08 +02:00
openmp [Libomptarget] Add missing explicit moves on llvm::Error 2023-03-20 12:00:01 -05:00
polly Revert "Reland "[CMake] Bumps minimum version to 3.20.0."" 2023-03-18 20:32:43 +01:00
pstl Revert "Reland "[CMake] Bumps minimum version to 3.20.0."" 2023-03-18 20:32:43 +01:00
runtimes [runtimes] Don't use -Wall on clang-cl builds 2023-03-19 12:51:37 +01:00
third-party Remove an extra // in the IWYU pragma for gtest-matchers.h 2023-03-14 13:11:53 +01:00
utils [mlir] Transform dialect: add named sequences 2023-03-21 14:53:54 +00:00
.arcconfig
.arclint
.clang-format
.clang-tidy Add -misc-const-correctness to .clang-tidy 2022-08-08 13:00:52 -07:00
.git-blame-ignore-revs Add __config formatting to .git-blame-ignore-revs 2022-06-14 09:52:49 -04:00
.gitignore [llvm] Ignore .rej files in .gitignore 2022-04-28 08:44:51 -07:00
.mailmap [mailmap] Add my entry 2022-12-16 05:30:29 +08:00
CONTRIBUTING.md docs: update some bug tracker references (NFC) 2022-01-10 15:59:08 -08:00
LICENSE.TXT [docs] Add LICENSE.txt to the root of the mono-repo 2022-08-24 09:35:00 +02:00
README.md [docs] Update README and GettingStarted 2023-03-08 12:55:59 -08:00
SECURITY.md [docs] Describe reporting security issues on the chromium tracker. 2021-05-19 15:21:50 -07:00

The LLVM Compiler Infrastructure

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.

Getting the Source Code and Building LLVM

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.

Getting in touch

Join the LLVM Discourse forums, Discord chat, or #llvm IRC channel on OFTC.

The LLVM project has adopted a code of conduct for participants to all modes of communication within the project.