LLVM backend for 6502
Go to file
Bill Wendling 4e7df86628 Merging r182989:
------------------------------------------------------------------------
r182989 | atrick | 2013-05-30 23:43:25 -0700 (Thu, 30 May 2013) | 13 lines

Fix ScalarEvolution::ComputeExitLimitFromCond for 'or' conditions.

Fixes PR16130 - clang produces incorrect code with loop/expression at -O2.

This is a 2+ year old bug that's now holding up the release. It's a
case where we knowingly made aggressive assumptions about undefined
behavior. These assumptions are wrong when SCEV is computing a
subexpression that does not directly control the branch. With this
fix, we avoid making assumptions in those cases but still optimize the
common case. SCEV's trip count computation for exits controlled by
'or' expressions is now analagous to the trip count computation for
loops with multiple exits. I had already fixed the multiple exit case
to be conservative.
------------------------------------------------------------------------


git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_33@183245 91177308-0d34-0410-b5e6-96231b3b80d8
2013-06-04 19:57:28 +00:00
autoconf Remove 'svn' from version. 2013-05-20 20:18:23 +00:00
bindings
cmake [SystemZ] Add configure bits 2013-05-06 16:22:34 +00:00
docs Update the release notes for the 3.3 release. 2013-06-04 06:05:49 +00:00
examples Port ExceptionDemo to MCJIT. 2013-05-05 20:57:58 +00:00
include Merging 182989: Fix ScalarEvolution::ComputeExitLimitFromCond for 'or' conditions. 2013-05-31 16:06:18 +00:00
lib Merging r183035: 2013-06-04 04:35:28 +00:00
projects [SystemZ] Add to --enable-targets=all 2013-05-06 16:23:07 +00:00
runtime
test Merging r183035: 2013-06-04 04:35:28 +00:00
tools Split Alignment out of the Section Characteristics. 2013-05-06 20:11:21 +00:00
unittests Fixing MCJIT unit test on Windows. 2013-05-10 20:28:44 +00:00
utils Update to ToT's version. 2013-05-08 09:24:11 +00:00
.arcconfig
.gitignore
CMakeLists.txt [SystemZ] Add to --enable-targets=all 2013-05-06 16:23:07 +00:00
CODE_OWNERS.TXT Merge of r181434 2013-05-08 14:42:12 +00:00
configure Remove the 'svn' from the version. 2013-05-20 20:16:54 +00:00
CREDITS.TXT
LICENSE.TXT
llvm.spec.in
LLVMBuild.txt
Makefile
Makefile.common
Makefile.config.in
Makefile.rules Remove this hack. We can support this better with function attributes. 2013-05-03 21:53:50 +00:00
README.txt

Low Level Virtual Machine (LLVM)
================================

This directory and its subdirectories contain source code for the Low Level
Virtual Machine, 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're writing a package for LLVM, see docs/Packaging.rst for our
suggestions.