llvm-project/llvm
Sanjay Patel 6f00fc3317 [InstCombine] reorder folds to reduce chance of infinite loops
I don't have a test case for this, but it's motivated by
the discussion in D51964, and I've added TODO comments for
the better fix - move simplifications into instsimplify
because that's more efficient and reduces risk of infinite
loops in instcombine caused by transforms trying to do the
opposite folds.

In this case, we know that the transform that tries to move
'not' through min/max can be fooled by the multiple uses
of a value in another min/max, so try to squash the 
foldSPFofSPF() patterns first.

llvm-svn: 342147
2018-09-13 16:04:06 +00:00
..
benchmarks Pull google/benchmark library to the LLVM tree 2018-08-28 09:42:41 +00:00
bindings [Bindings][Go] Fixed go.test failure due to C-API argument type mismatch. 2018-09-07 17:33:43 +00:00
cmake [CMake] Fix LLVM_ENABLE_LTO option on Windows 2018-09-07 20:07:36 +00:00
docs ReleaseNotes: update links to use https 2018-09-10 08:50:31 +00:00
examples
include ARM: align loops to 4 bytes on Cortex-M3 and Cortex-M4. 2018-09-13 10:28:05 +00:00
lib [InstCombine] reorder folds to reduce chance of infinite loops 2018-09-13 16:04:06 +00:00
projects
resources
runtimes
test [ARM] Allow truncs as sources in ARM CGP 2018-09-13 15:14:12 +00:00
tools [llvm-exegesis][NFC] Remove dead parameter. 2018-09-13 08:06:29 +00:00
unittests [llvm-exegesis][NFC] Split BenchmarkRunner class 2018-09-13 07:40:53 +00:00
utils Test commit: remove trailing whitespace 2018-09-11 17:28:43 +00:00
.arcconfig
.clang-format
.clang-tidy
.gitattributes
.gitignore
CMakeLists.txt [benchmark] Re-enable benchmarks on all platforms including Windows 2018-09-07 21:47:00 +00:00
CODE_OWNERS.TXT Add owner for llvm-objcopy 2018-08-09 22:05:19 +00:00
CREDITS.TXT
LICENSE.TXT
LLVMBuild.txt
README.txt
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.