1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-25 05:52:53 +02:00
llvm-mirror/test
Daniel Berlin 2710b40fb3 NewGVN: Move leaders around properly to ensure we have a canonical dominating leader. Fixes PR 31613.
Summary:
This is a testcase where phi node cycling happens, and because we do
not order the leaders by domination or anything similar, the leader
keeps changing.

Using std::set for the members is too expensive, and we actually don't
need them sorted all the time, only at leader changes.

We could keep both a set and a vector, and keep them mostly sorted and
resort as necessary, or use a set and a fibheap, but all of this seems
premature.

After running some statistics, we are able to avoid the vast majority
of sorting by keeping a "next leader" field.  Most congruence classes only have
leader changes once or twice during GVN.

Reviewers: davide

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D28594

llvm-svn: 291968
2017-01-13 22:40:01 +00:00
..
Analysis [SCEV] Make howFarToZero max backedge-taken count check for precondition. 2017-01-11 21:07:15 +00:00
Assembler
Bindings
Bitcode
BugPoint
CodeGen [NVPTX] Added support for half-precision floating point. 2017-01-13 20:56:17 +00:00
DebugInfo [DebugInfo] Handle same locations in DILocation::getMergedLocation 2017-01-12 20:34:35 +00:00
Examples
ExecutionEngine
Feature
FileCheck
Instrumentation [asan] Don't overalign global metadata. 2017-01-12 23:26:20 +00:00
Integer
JitListener
LibDriver
Linker
LTO
MC [AMDGPU] Assembler: SDWA/DPP should not accept scalar registers and immediate operands 2017-01-11 11:46:30 +00:00
Object
ObjectYAML
Other Move test of lazy BFI with ORE to a generic directory 2017-01-13 00:16:23 +00:00
SymbolRewriter
TableGen
ThinLTO/X86 [ThinLTO] Import static functions from the same module as caller 2017-01-12 22:04:45 +00:00
tools Revert r291903 and r291898. Reason: they break check-lld on the bots. 2017-01-13 16:45:15 +00:00
Transforms NewGVN: Move leaders around properly to ensure we have a canonical dominating leader. Fixes PR 31613. 2017-01-13 22:40:01 +00:00
Unit
Verifier
YAMLParser
.clang-format
CMakeLists.txt
lit.cfg
lit.site.cfg.in
TestRunner.sh