[LLVMdev] Any plan to add MIN/MAX isd node?

Duncan Sands baldrick at free.fr
Tue Oct 30 00:37:47 PDT 2012


Hi Yin,

>        Do you have any plan to add MIN/MAX in ISD node?
>
> Atomic operations have Min/Max operator already. This should
>
> be easy to add Min/Max node in ISD list. Because after
>
> converting control flow into Min/Max operator, it will
>
> result in better optimization because associative attribute
>
> and can be moved around.
>
>       Could you give some opinions on this issue?

what are the advantages over using "select" (or one of its codegen
variants)?

Ciao, Duncan.




More information about the llvm-dev mailing list