llvm-6502/test/Transforms/JumpThreading
Chandler Carruth 080dfb5bda Fix a somewhat subtle pair of issues with JumpThreading I introduced in
r220178. First, the creation routine doesn't insert prior to the
terminator of the basic block provided, but really at the end of the
basic block. Instead, get the terminator and insert before that. The
next issue was that we need to ensure multiple PHI node entries for
a single predecessor re-use the same cast instruction rather than
creating new ones.

All of the logic here was without tests previously. I've reduced and
added a test case from the test suite that crashed without both of these
fixes.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220186 91177308-0d34-0410-b5e6-96231b3b80d8
2014-10-20 05:34:36 +00:00
..
2008-11-27-EntryMunge.ll
2010-08-26-and.ll
2011-04-02-SimplifyDeadBlock.ll
2011-04-14-InfLoop.ll
2012-07-19-NoSuccessorIndirectBr.ll
and-and-cond.ll
and-cond.ll
assume-edge-dom.ll [LVI] Check for @llvm.assume dominating the edge branch 2014-10-14 16:04:49 +00:00
assume.ll Make use of @llvm.assume from LazyValueInfo 2014-09-07 20:29:59 +00:00
basic.ll
branch-no-const.ll
compare.ll
crash.ll
degenerate-phi.ll
indirectbr.ll
landing-pad.ll Don't eliminate a partially redundant load if it's in a landing pad. 2013-10-21 04:09:17 +00:00
lvi-load.ll
no-irreducible-loops.ll
or-undef.ll
phi-eq.ll No need for those tests to go thru llvm-as and/or llvm-dis. 2014-05-27 22:03:28 +00:00
pr9331.ll
pr15851_hang.ll Fixed jump threading going to infinite loop. 2014-06-17 14:34:19 +00:00
select.ll Fixed jump threading going to infinite loop. 2014-06-17 14:34:19 +00:00
thread-loads.ll Fix a somewhat subtle pair of issues with JumpThreading I introduced in 2014-10-20 05:34:36 +00:00