[PATCH] D12249: Remove the final bit test during lowering switch statement if all cases in bit test cover a contiguous range.

Cong Hou via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 25 13:48:20 PDT 2015


congh added inline comments.

================
Comment at: test/CodeGen/X86/switch.ll:488
@@ -413,1 +487,3 @@
+; The range check guarantees that cases other than 1,4,7 and 2,5,8,9 must be
+; in 0,3,6.
 
----------------
I have added two test cases covering two cases you mentioned. Thank you for the suggestion!


http://reviews.llvm.org/D12249





More information about the llvm-commits mailing list