llvm-project/llvm
Hans Wennborg a60aa91374 Revert r343407 "[InstCombine] try to convert vector insert+extract to trunc"
This caused Chromium builds to fail with "Illegal Trunc" assertion.
See https://crbug.com/890723 for repro.

> This transform is requested for the backend in:
> https://bugs.llvm.org/show_bug.cgi?id=39016
> ...but I figured it was worth doing in IR too, and it's probably
> easier to implement here, so that's this patch.
>
> In the simplest case, we are just truncating a scalar value. If the
> extract index doesn't correspond to the LSBs of the scalar, then we
> have to shift-right before the truncate. Endian-ness makes this tricky,
> but hopefully the ASCII-art helps visualize the transform.
>
> Differential Revision: https://reviews.llvm.org/D52439

llvm-svn: 343458
2018-10-01 12:07:45 +00:00
..
benchmarks Pull google/benchmark library to the LLVM tree 2018-08-28 09:42:41 +00:00
bindings [bindings/go] Add Go bindings to the Token type 2018-09-28 17:39:59 +00:00
cmake [CMake] Avoid REVERSE on unset variable 2018-09-26 10:14:10 +00:00
docs The llvm-exegesis output file is a html file not a txt file. 2018-09-27 13:49:52 +00:00
examples [ORC] Fix BuildingAJIT tutorial examples that were broken by r343059. 2018-09-26 04:00:58 +00:00
include [DebugInfo][Dexter] Incorrect DBG_VALUE after MCP dead copy instruction removal. 2018-10-01 08:14:44 +00:00
lib Revert r343407 "[InstCombine] try to convert vector insert+extract to trunc" 2018-10-01 12:07:45 +00:00
projects
resources
runtimes
test Revert r343407 "[InstCombine] try to convert vector insert+extract to trunc" 2018-10-01 12:07:45 +00:00
tools [llvm-exegesis][NFC] Make randomizeUnsetVariables a free function. 2018-10-01 11:46:06 +00:00
unittests [ORC] Add an 'intern' method to ExecutionEngine for interning symbol names. 2018-09-30 23:18:24 +00:00
utils Use the container form llvm::sort(C, ...) 2018-09-30 22:31:29 +00:00
.arcconfig
.clang-format
.clang-tidy
.gitattributes
.gitignore
CMakeLists.txt [WebAssembly] Revert r342701, "Add WebAssembly to LLVM_ALL_TARGTS." 2018-09-21 03:24:42 +00:00
CODE_OWNERS.TXT
CREDITS.TXT
LICENSE.TXT
LLVMBuild.txt
README.txt Test commit. 2018-09-22 01:01:03 +00:00
RELEASE_TESTERS.TXT
configure
llvm.spec.in

README.txt

The LLVM Compiler Infrastructure
================================

This directory and its subdirectories contain source code for LLVM,
a toolkit for the construction of highly optimized compilers,
optimizers, and runtime environments.

LLVM is open source software. You may freely distribute it under the terms of
the license agreement found in LICENSE.txt.

Please see the documentation provided in docs/ for further
assistance with LLVM, and in particular docs/GettingStarted.rst for getting
started with LLVM and docs/README.txt for an overview of LLVM's
documentation setup.

If you are writing a package for LLVM, see docs/Packaging.rst for our
suggestions.