[PATCH] Optimize memcmp(x, y, n)==0 for small n and suitably aligned x/y.
eelis at eelis.net
Wed Jan 14 00:15:04 PST 2015
Thanks Joerg, that's a great point!
I don't really know how to do that though. I see that the memcmp code in SelectionDAGBuilder.cpp uses allowsMisalignedMemoryAccesses(), but that function takes an EVT, a type which is not known in Transforms/Utils/SimplifyLibCalls.cpp.
More information about the llvm-commits