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

David Li via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 26 12:34:50 PDT 2016


davidxl added a comment.

Fixing this in CGP seems like papering over real problems in ISEL or machine function optimization passes. The reason is that such code may be written by the user (not created by CGP): e.g.

  switch( ..) {
     case 1:             // no empty block created for this
       break;
     case ..
           ...
    }


https://reviews.llvm.org/D22696





More information about the llvm-commits mailing list