Displaying 3 results from an estimated 3 matches for "hasvector".
2008 Sep 22
0
[LLVMdev] Overzealous PromoteCastOfAllocation
On Sep 13, 2008, at 1:07 PM, Matthijs Kooijman wrote:
> Hi Dan,
>
>> Changing PromoteCastOfAllocation to not replace aggregate allocas
>> with
>> non-aggregate allocas if they have GEP users sounds reasonable to me.
> This sounds reasonable indeed, but still a bit arbitrary. Haven't
> figured out
> anything better yet, though.
>
>> Finding the
2008 Sep 13
3
[LLVMdev] Overzealous PromoteCastOfAllocation
Hi Dan,
> Changing PromoteCastOfAllocation to not replace aggregate allocas with
> non-aggregate allocas if they have GEP users sounds reasonable to me.
This sounds reasonable indeed, but still a bit arbitrary. Haven't figured out
anything better yet, though.
> Finding the maximum alignment is sometimes still useful though, so
> it would be nice to update the alignment field of
2008 Sep 23
3
[LLVMdev] Overzealous PromoteCastOfAllocation
...alarReplAggregates.cpp
===================================================================
--- lib/Transforms/Scalar/ScalarReplAggregates.cpp (revision 56433)
+++ lib/Transforms/Scalar/ScalarReplAggregates.cpp (working copy)
@@ -530,8 +530,9 @@
return MarkUnsafe(Info);
}
}
+
+ bool hasVector = false;
-
// Walk through the GEP type indices, checking the types that this indexes
// into.
for (; I != E; ++I) {
@@ -539,22 +540,29 @@
if (isa<StructType>(*I))
continue;
- // Don't SROA pointers into vectors.
- if (isa<VectorType>(*I))
-...