llvm-project/llvm
Wei Mi a62f058989 Some stackslots are allocated to vregs which have no real reference.
LiveRangeEdit::eliminateDeadDef is used to remove dead define instructions
after rematerialization. To remove a VNI for a vreg from its LiveInterval,
LiveIntervals::removeVRegDefAt is used. However, after non-PHI VNIs are all
removed, PHI VNI are still left in the LiveInterval. Such unused vregs will
be kept in RegsToSpill[] at the end of InlineSpiller::reMaterializeAll and
spiller will allocate stackslot for them.

The fix is to get rid of unused reg by checking whether it has non-dbg
reference instead of whether it has non-empty interval.

llvm-svn: 259895
2016-02-05 18:14:24 +00:00
..
bindings Remove autoconf support 2016-01-26 21:29:08 +00:00
cmake Install cmake files to lib/cmake/llvm 2016-02-04 20:08:19 +00:00
docs [docs] Fix typo in YamlIO.rst 2016-02-04 20:42:43 +00:00
examples Remove autoconf support 2016-01-26 21:29:08 +00:00
include Fix for PR 26193 2016-02-05 14:50:29 +00:00
lib Some stackslots are allocated to vregs which have no real reference. 2016-02-05 18:14:24 +00:00
projects Remove autoconf support 2016-01-26 21:29:08 +00:00
resources
test Some stackslots are allocated to vregs which have no real reference. 2016-02-05 18:14:24 +00:00
tools Prefix external symbols in llvm-c-test. 2016-02-05 13:31:14 +00:00
unittests [PGO] Add interfaces to annotate instr with VP data 2016-02-04 19:11:43 +00:00
utils The canonical way to XFAIL a test for all targets is XFAIL: *, not XFAIL: 2016-02-04 16:21:38 +00:00
.arcconfig
.clang-format
.clang-tidy adding readability-identifier-naming to llvm clang-tidy configuration. 2015-12-08 17:44:51 +00:00
.gitignore
CMakeLists.txt [GlobalISel] Add the proper cmake plumbing. 2016-01-20 20:58:56 +00:00
CODE_OWNERS.TXT [docs] Remove references to autotools build. 2016-01-30 01:10:15 +00:00
CREDITS.TXT
LICENSE.TXT
LLVMBuild.txt
README.txt Revert previous test commit. 2016-01-04 19:13:29 +00:00
configure Remove autoconf support 2016-01-26 21:29:08 +00:00
llvm.spec.in

README.txt

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

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.