[PATCH] [CodeGen] Add a pass to fold null checks into nearby memory operations.

Sanjoy Das sanjoy at playingwithpointers.com
Fri Jun 5 09:10:34 PDT 2015


> Just curious: do you still intend to eventually have this check branch weights and only do the transformation when the null path is very cold?  And/or to add some other heuristics here?  Or is the plan now to be this aggressive here and rely entirely on patching to handle the cases where the null path is not very cold?

I plan to do the former.  I kept that logic out of this patch to keep
the initial review simple.

-- Sanjoy

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




More information about the llvm-commits mailing list