[llvm-commits] [llvm] r163896 - /llvm/trunk/lib/Transforms/Scalar/SROA.cpp
Chandler Carruth
chandlerc at gmail.com
Fri Sep 14 03:30:44 PDT 2012
Author: chandlerc
Date: Fri Sep 14 05:30:44 2012
New Revision: 163896
URL: http://llvm.org/viewvc/llvm-project?rev=163896&view=rev
Log:
Rely on the recursive check for pointer types rather than adding an
explicit check before recursing. A simplification requested by Duncan
during review.
Modified:
llvm/trunk/lib/Transforms/Scalar/SROA.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/SROA.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/SROA.cpp?rev=163896&r1=163895&r2=163896&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/SROA.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/SROA.cpp Fri Sep 14 05:30:44 2012
@@ -2368,9 +2368,6 @@
if (Offset > 0 || Size < ElementSize) {
if ((Offset + Size) > ElementSize)
return 0;
- // Bail if this is a poniter element, we can't recurse through them.
- if (ElementTy->isPointerTy())
- return 0;
return getTypePartition(TD, ElementTy, Offset, Size);
}
assert(Offset == 0);
More information about the llvm-commits
mailing list