Displaying 1 result from an estimated 1 matches for "enum6".
Did you mean:
enum
2015 Sep 30
2
Optimizing jumps to identical code blocks
...$1, %eax
je LBB0_5
cmpl $2, %eax
je LBB0_5
cmpl $3, %eax
LBB0_5:
could be removed.
(Further optimization would be possible by observing that the two 32-bit
comparison could be unified into a single 64-bit comparison, but I believe
this is a different issue)
In "enum6.s" all of the elements of the jump table point to the same label
(which is also right after the jump to the table dispatch code), so the
jump table is actually useless.
Is there any combination of passes that should make it possible for LLVM to
optimize this?
Would outline + merge functions b...