llvm-project/llvm/test/Transforms/CodeGenPrepare/X86
Jun Bum Lim 90b6b5074a [CodeGenPrep] Skip merging empty case blocks
This is recommit of r287553 after fixing the invalid loop info after eliminating an empty block and unit test failures in AVR and WebAssembly :

Summary: Merging an empty case block into the header block of switch could cause ISel to add COPY instructions in the header of switch, instead of the case block, if the case block is used as an incoming block of a PHI. This could potentially increase dynamic instructions, especially when the switch is in a loop. I added a test case which was reduced from the benchmark I was targetting.

Reviewers: t.p.northover, mcrosier, manmanren, wmi, joerg, davidxl

Subscribers: joerg, qcolombet, danielcdh, hfinkel, mcrosier, llvm-commits

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

llvm-svn: 289988
2016-12-16 20:38:39 +00:00
..
catchpad-phi-cast.ll [PR27284] Reverse the ownership between DICompileUnit and DISubprogram. 2016-04-15 15:57:41 +00:00
cttz-ctlz.ll this new test file was accidentally left out of r253573 2015-11-19 16:39:00 +00:00
extend-sink-hoist.ll
fcmp-sinking.ll [CodeGenPrepare] Avoid sinking soft-FP comparisons 2016-04-03 16:36:17 +00:00
lit.local.cfg
memset_chk-simplify-nobuiltin.ll Revert "Change memcpy/memset/memmove to have dest and source alignments." 2015-11-19 05:56:52 +00:00
pr27536.ll [CodeGenPrepare] Don't sink a cast past its user 2016-04-27 19:36:38 +00:00
select.ll [CodeGenPrepare] don't convert an unpredictable select into control flow 2016-04-26 00:47:39 +00:00
sink-addrmode.ll [CGP] Duplicate addressing computation in cold paths if required to sink addressing mode 2016-03-09 23:13:12 +00:00
sink-addrspacecast.ll
widen_switch.ll [CodeGenPrep] Skip merging empty case blocks 2016-12-16 20:38:39 +00:00
x86-shuffle-sink.ll