llvm-6502/test
Juergen Ributzka 8ebaf63750 [Constant Hoisting] Change the algorithm to only track constants for instructions.
Originally the algorithm would search for expensive constants and track their
users, which could be instructions and constant expressions. This change only
tracks the constants for instructions, but constant expressions are indirectly
covered too. If an operand is an constant expression, then we look through the
expression to find anny expensive constants.

The algorithm keep now track of the instruction and the operand index where the
constant is used. This allows more precise hoisting of constant materialization
code for PHI instructions, because we only hoist to the basic block of the
incoming operand. Before we had to find the idom of all PHI operands and hoist
the materialization code there.

This also makes updating of instructions easier. Before we had to keep track of
the original constant, find it in the instructions, and then replace it. Now we
can just simply update the operand.

Related to <rdar://problem/16381500>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204433 91177308-0d34-0410-b5e6-96231b3b80d8
2014-03-21 06:04:36 +00:00
..
Analysis
Assembler
Bindings
Bitcode
BugPoint
CodeGen Fix an assertion caused by using inline asm with indirect register inputs. 2014-03-21 02:14:50 +00:00
DebugInfo Convert CodeGen test into a more specific MC test. 2014-03-20 22:05:59 +00:00
ExecutionEngine
Feature Expose "noduplicate" attribute as a property for intrinsics. 2014-03-18 23:51:07 +00:00
FileCheck
Instrumentation [ASan] Add -asan-module to the ASan .ll tests. 2014-03-20 11:16:34 +00:00
Integer
JitListener
Linker Switch the type field in DIVariable and DIGlobalVariable over to DITypeRefs. 2014-03-18 02:34:58 +00:00
LTO
MC This reverts commit r203762, "ARM: support emission of complex SO expressions". 2014-03-21 02:51:01 +00:00
Object Object: Output .file symbols properly 2014-03-20 06:29:02 +00:00
Other
TableGen
tools Object/COFF: Support large relocation table. 2014-03-21 00:44:19 +00:00
Transforms [Constant Hoisting] Change the algorithm to only track constants for instructions. 2014-03-21 06:04:36 +00:00
Unit
Verifier
YAMLParser
.clang-format
CMakeLists.txt
lit.cfg
lit.site.cfg.in
Makefile
Makefile.tests
TestRunner.sh