[Polly] Introduce reduction types

Johannes Doerfert jdoerfert at codeaurora.org
Mon Jun 30 16:06:15 PDT 2014


Hey Tobi,

 

I attached a patch to introduce reduction types and changed the test cases
to check for the right type.

This will ease more general detection and allows us later during code
generation to get the right initialization/aggregation values/operands.

 

I know you asked before why I don't reuse the Vectorizer enum here so I want
to answer that question in advance:

1)      It is not accessible from outside the cpp where it is declared.

2)      It is unnecessarily complex (stores the type and has a second enum
to distinguish specialize min/max reductions)

 

What do you think?

 

Best regards,

  Johannes 

 

--

 

Johannes Doerfert

Employee of Qualcomm Innovation Center, Inc.

Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by
The Linux Foundation

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140630/f809d2c6/attachment.html>


More information about the llvm-commits mailing list