search for: 3d2d2b9f

Displaying 2 results from an estimated 2 matches for "3d2d2b9f".

2013 Dec 20
0
[LLVMdev] Switch instruction optimization
...___ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20131220/3d2d2b9f/attachment.html>
2013 Dec 20
3
[LLVMdev] Switch instruction optimization
Hello there, I have a high level code which would look like that in C++: enum E { A, B, C }; E int2e(long i) { switch(i) { case 0: return A; case 1: return B; case 2: return C; default: return A; } } It is compiled to this IR with O3 optimization: define i64 @int2e(i64 %i_arg) #0 { entry: switch i64 %i_arg, label %label_case1 [ i64 2, label