[PATCH] D22696: [CodeGenPrep] Skip merging empty case blocks

Jun Bum Lim via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 12 08:54:56 PDT 2016


junbuml updated this revision to Diff 67840.
junbuml marked 5 inline comments as done.
junbuml added a comment.

Sorry for the long trip time on this.  First, I make the test case very simple as Renato commented. I also make this applied conservatively because a branch instruction could be added in the empty case block. So, this will happen only when the frequency of empty case block is significantly lower than the frequency of header of switch. 
Please take a look and let me know any comment.
Thanks,
Jun


https://reviews.llvm.org/D22696

Files:
  lib/CodeGen/CodeGenPrepare.cpp
  test/Transforms/CodeGenPrepare/skip-merging-case-block.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D22696.67840.patch
Type: text/x-patch
Size: 6621 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160812/481f0137/attachment.bin>


More information about the llvm-commits mailing list