[LLVMdev] NO-OP
Fernando Magno Quintao Pereira
fernando at CS.UCLA.EDU
Fri Jul 13 11:43:16 PDT 2007
> Why do you want to do this? Empty MBBs are valid, and it's probably
> better to have your code handle them.
Currently, that is the solution. I have a special treatment for empty
basic blocks. I think the code would be more homogeneous if there were no
empty basic blocks.
>
> There is a NOP "instruction" on x86, equivalent to XCHG EAX, EAX.
The problem with xchk EAX, EAX is that is uses registers, and it would
add a small burden on the register allocator.
Fernando
More information about the llvm-dev
mailing list