[PATCH] [SimplifyCFG] Teach when it is profitable to speculate calls to @llvm.cttz/ctlz.
hfinkel at anl.gov
hfinkel at anl.gov
Tue Dec 16 12:37:05 PST 2014
In http://reviews.llvm.org/D6679#102065, @qcolombet wrote:
> Hi Andrea,
...
> Assuming the answer of my previous question is yes, I think it makes sense to have that in SimplifyCFG.
I agree; the transformation seems reasonable. If it turns out not be be good for targets that can't completely fold the result, you could put the transformation in CodeGenPrep where you can directly query the target.
http://reviews.llvm.org/D6679
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
More information about the llvm-commits
mailing list