1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-26 06:22:56 +02:00
llvm-mirror/test
Sanjoy Das 277ce4cdb4 [SCEV] Pick backedge values for phi nodes correctly
Summary:
`getConstantEvolutionLoopExitValue` and `ComputeExitCountExhaustively`
assumed all phi nodes in the loop header have the same order of incoming
values.  This is not correct, and this commit changes
`getConstantEvolutionLoopExitValue` and `ComputeExitCountExhaustively`
to lookup the backedge value of a phi node using the loop's latch block.

Unfortunately, there is still some code duplication
`getConstantEvolutionLoopExitValue` and `ComputeExitCountExhaustively`.
At some point in the future we should extract out a helper class /
method that can evolve constant evolution phi nodes across iterations.

Fixes 25060.  Thanks to Mattias Eriksson for the spot-on analysis!

Depends on D13457.

Reviewers: atrick, hfinkel

Subscribers: materi, llvm-commits

Differential Revision: http://reviews.llvm.org/D13458

llvm-svn: 249712
2015-10-08 18:28:36 +00:00
..
Analysis Compute demanded bits for icmp instructions 2015-10-08 12:40:06 +00:00
Assembler
Bindings
Bitcode Make sure the CastInst is valid before trying to create it 2015-10-06 12:37:54 +00:00
BugPoint
CodeGen [SystemZ] Fix another assertion failure in tryBuildVectorShuffle 2015-10-08 17:46:59 +00:00
DebugInfo Move test back to Generic now it's fixed the right way (thanks Eric!) 2015-10-07 16:26:28 +00:00
Examples
ExecutionEngine [Orc] Teach the CompileOnDemand layer to clone aliases. 2015-10-06 22:55:05 +00:00
Feature
FileCheck
Instrumentation
Integer
JitListener
LibDriver
Linker
LTO
MC AVX512: vpextrb/w/d/q and vpinsrb/w/d/q implementation. 2015-10-08 12:55:01 +00:00
Object
Other
SymbolRewriter
TableGen
tools Fix a bug in llvm-objdump’s printing of Objective-C meta data 2015-10-08 16:56:35 +00:00
Transforms [SCEV] Pick backedge values for phi nodes correctly 2015-10-08 18:28:36 +00:00
Unit
Verifier
YAMLParser
.clang-format
CMakeLists.txt
lit.cfg
lit.site.cfg.in
Makefile
Makefile.tests
TestRunner.sh