PATCH: WIP SLPVectorize: Enable vectorization of allocas

Matt Arsenault arsenm2 at gmail.com
Thu Oct 24 23:50:20 PDT 2013


+// FIXME: How to determine this?
+static AllocaInst* derivedFromAlloca(Value *Ptr) {
+  return dyn_cast<AllocaInst>(Ptr);
+}

I think what you're looking for here is GetUnderlyingObject, and checking
if it's an AllocaInst


On Thu, Oct 24, 2013 at 9:02 PM, Tom Stellard <tom at stellard.net> wrote:

> Hi,
>
> As a follow up to this discussion:
> http://lists.cs.uiuc.edu/pipermail/llvmdev/2013-October/066780.html
>
> I put together a very simple patch that begins to implement the
> transformation
> mentioned in the llvm-dev thread.  The patch is incomplete and is mostly
> comments
> with question about how to do certain things, but it does work for the
> simple test case included in the patch.
>
> I'd appreciate any feedback people can give me on this patch and the
> questions posed in the comments.
>
> Thanks,
> Tom
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20131024/1c24372b/attachment.html>


More information about the llvm-commits mailing list