[PATCH] CodeGenPrepare: Avoid and/or i1 in select conditions.

hfinkel at anl.gov hfinkel at anl.gov
Fri Feb 13 14:13:55 PST 2015


In http://reviews.llvm.org/D7622#123459, @ab wrote:

> I should note that this would have been useful as a DAGCombine as
>  well, because for instance on X86, (select (fcmp oeq/une)) is lowered
>  into the pattern matched here.
>
> Matthias tells me doing it as a DAGCombine was frowned upon (why?),


I also don't understand why this would not be done in DAGCombine. It is basic-block local, and concerns itself with type legality, it seems appropriate for DAGCombine. One complication with DAGCombine is, if SELECT is not legal, then matching this might be hard.

> so

>  I'm doing pretty much the same thing on X86ISD::CMOV nodes, and will

>  submit shortly.

> -Ahmed



REPOSITORY
  rL LLVM

http://reviews.llvm.org/D7622

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the llvm-commits mailing list