LLVM backend for 6502
Go to file
Hal Finkel afe2f43e4e Fix bug in PEI's virtual-register scavenging
This change fixes a bug that I introduced in r178058. After a register is
scavenged using one of the available spills slots the instruction defining the
virtual register needs to be moved to after the spill code. The scavenger has
already processed the defining instruction so that registers killed by that
instruction are available for definition in that same instruction. Unfortunately,
after this, the scavenger needs to iterate through the spill code and then
visit, again, the instruction that defines the now-scavenged register. In order
to avoid confusion, the register scavenger needs the ability to 'back up'
through the spill code so that it can again process the instructions in the
appropriate order. Prior to this fix, once the scavenger reached the
just-moved instruction, it would assert if it killed any registers because,
having already processed the instruction, it believed they were undefined.

Unfortunately, I don't yet have a small test case. Thanks to Pranav Bhandarkar
for diagnosing the problem and testing this fix.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178845 91177308-0d34-0410-b5e6-96231b3b80d8
2013-04-05 05:01:13 +00:00
autoconf
bindings
cmake
docs Missing word 2013-04-04 18:29:19 +00:00
examples
include Fix bug in PEI's virtual-register scavenging 2013-04-05 05:01:13 +00:00
lib Fix bug in PEI's virtual-register scavenging 2013-04-05 05:01:13 +00:00
projects
runtime
test More test loosening. 2013-04-05 04:54:42 +00:00
tools Move obj2yaml to tools to sort out make's dependencies. 2013-04-05 02:57:22 +00:00
unittests
utils Move obj2yaml to tools to sort out make's dependencies. 2013-04-05 02:57:22 +00:00
.arcconfig
.gitignore
CMakeLists.txt Move obj2yaml to tools to sort out make's dependencies. 2013-04-05 02:57:22 +00:00
CODE_OWNERS.TXT
configure
CREDITS.TXT
LICENSE.TXT
llvm.spec.in
LLVMBuild.txt
Makefile
Makefile.common
Makefile.config.in
Makefile.rules
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.