[LLVMdev] Two labels around one instruction in Codegen

Evan Cheng evan.cheng at apple.com
Thu Nov 8 10:49:04 PST 2007


That would complicate instruction selection. Not worth it.

Evan

On Nov 8, 2007, at 1:10 AM, Duncan Sands wrote:

>> 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?
>
> D.




More information about the llvm-dev mailing list