[LLVMdev] Two labels around one instruction in Codegen
baldrick at free.fr
Thu Nov 8 01:10:29 PST 2007
> Ok, so it turns out the labels do not have to be just before / after
> the divide. So we don't have to use the MVT::Flag hackery. However,
> the second label must be after the divide. I think the solution is to
> add a trapping version of DIV (and others) and the second label can
> use its chain value as operand.
How about a new "trapping" SDNode, which you can wrap trapping sdiv
and other instructions in?
More information about the llvm-dev