[PATCH] D12249: Remove the final bit test during lowering switch statement if all cases in bit test cover a contiguous range.
David Li via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 21 16:46:57 PDT 2015
davidxl added a comment.
I think it should be an optimization that always wins -- the following conditions need to be satisfied:
1. value range is continuous AND
2. min == 0 OR the value range is outside 64 (or whatever largest width supported by the target)
http://reviews.llvm.org/D12249
More information about the llvm-commits
mailing list