[LLVMdev] x86 jo+int -> into

Chris Lattner clattner at apple.com
Mon Aug 23 12:41:30 PDT 2010


On Aug 21, 2010, at 11:10 PM, Peter Housel wrote:

> The enclosed patch adds a llvm.x86.int(i8) intrinsic expanding to the INT or INT3 instruction as appropriate.

Looks great!  Applied in r111831.

>  I haven't yet figured out the best way to select for the INTO instruction across basic blocks (hints would be welcome), but that can be added later with no changes in semantics.


I'd suggest handling this late in the pipeline, probably in the branch folding phase.  I'm not sure if branch folding allows target-specific xforms to be implemented in it yet though.

-Chris



More information about the llvm-dev mailing list