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

Michele Scandale michele.scandale at gmail.com
Fri Apr 10 18:44:13 PDT 2015


In http://reviews.llvm.org/D7622#154957, @MatzeB wrote:

> I would be fine with either skipping the transformation if the types don't match up or extending the types. I personally would lean towards skipping the transformation as the extension is an extra instruction which makes the transformation less beneficial. As none of the targets I know are affected, what would the preference for your target?
>
> - Matthias


The previous example was showing the issue using the in-tree Mips backend.
Btw, the behavior of the target I am working on is quite close to Mips. On the proposed example it is better to skip the transformation when the two condition are not homogeneous.

-Michele


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