[llvm-commits] [llvm] r122567 - /llvm/trunk/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
Duncan Sands
baldrick at free.fr
Sun Dec 26 13:08:08 PST 2010
Hi Chris,
> + // Check to see if the store updates all bits in memory. We don't want to
> + // process things like a store of i3. We also require that the store be a
> + // multiple of a byte.
> + uint64_t SizeInBits = TD->getTypeSizeInBits(StoredVal->getType());
> + if ((SizeInBits& 7) || (SizeInBits>> 32) != 0 ||
> + SizeInBits != TD->getTypeStoreSizeInBits(StoredVal->getType()))
> + return false;
will this catch the case of storing a first class struct or array?
Ciao, Duncan.
More information about the llvm-commits
mailing list