[PATCH] [SLPVectorizer] Reorder operands of shufflevector if it can result in a vectorized code.
Karthik Bhat
kv.bhat at samsung.com
Mon Jan 19 11:43:58 PST 2015
Hi Michael,
Thanks for the input. I really appreciate your help in the review process. I will rename the variables and update the patch as per review comments shortly.
Just one clarification here.
In your example -
b[0] b[0]
b[1] a[0]+c[0]
b[2] a[1]*c[1]
b[3] d[5]/e[6]
Post reordering i think we will still have good load order but in the right lane instead of left lane. If I'm not wrong we would get something like-
b[0] b[0]
a[0]+c[0] b[1]
a[1]*c[1] b[2]
d[5]/e[6] b[3]
retaining AllSameOpcode on right instead of left now.
Thanks and Regards
Karthik Bhat
REPOSITORY
rL LLVM
http://reviews.llvm.org/D6677
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
More information about the llvm-commits
mailing list