llvm-project/llvm/test/Transforms/JumpThreading
Ehsan Amiri f452f116d2 [Jump Threading] Unfold a select insn that feeds a switch via a phi node
Currently when a select has a constant value in one branch and the select feeds
a conditional branch (via a compare/ phi and compare) we unfold the select 
statement. This results in threading the conditional branch later on. Similar
opportunity exists when a select (with a constant in one branch) feeds a 
switch (via a phi node). The patch unfolds select under this condition. 
A testcase is provided.

llvm-svn: 350931
2019-01-11 15:52:57 +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
PR33357-lvi-recursion.ll
PR37745.ll
and-and-cond.ll
and-cond.ll
assume-edge-dom.ll
assume.ll
basic.ll
bb-unreachable-from-entry.ll
branch-no-const.ll
combine-metadata.ll [Local] Make DoesKMove required for combineMetadata. 2018-08-24 11:40:04 +00:00
compare.ll
conservative-lvi.ll
crash.ll [JumpThreading] Fix exponential time algorithm computing known values. 2018-11-09 22:35:26 +00:00
ddt-crash.ll
ddt-crash2.ll
ddt-crash3.ll
ddt-crash4.ll
degenerate-phi.ll
fold-not-thread.ll
guards.ll
header-succ.ll
implied-cond.ll
indirectbr.ll
induction.ll
landing-pad.ll
lvi-load.ll
lvi-tristate.ll
no-irreducible-loops.ll
or-undef.ll
phi-eq.ll
phi-known.ll
pr9331.ll
pr15851_hang.ll
pr22086.ll
pr26096.ll
pr27840.ll
pr33605.ll
pr33917.ll
pr36133.ll
range-compare.ll
removed-use.ll
select.ll [Jump Threading] Unfold a select insn that feeds a switch via a phi node 2019-01-11 15:52:57 +00:00
static-profile.ll
thread-cmp.ll
thread-loads.ll [Local] Keep K's range if K does not move when combining metadata. 2018-10-27 16:53:45 +00:00
threading_prof1.ll
threading_prof2.ll
update-edge-weight.ll