[polly] r212080 - [FIX] Don't consider reductions which are partially outside the SCoP
Johannes Doerfert
jdoerfert at codeaurora.org
Wed Jul 2 11:00:17 PDT 2014
I was thinking:
Basic blocks unequal + Independent blocks => outside the SCoP
But I might be wrong and I can most certainly adjust the comment if you want
me to (but only next week, sorry!).
--
Johannes Doerfert
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by
The Linux Foundation
-----Original Message-----
From: Tobias Grosser [mailto:tobias at grosser.es]
Sent: Wednesday, July 02, 2014 9:42 AM
To: Johannes Doerfert; llvm-commits at cs.uiuc.edu
Subject: Re: [polly] r212080 - [FIX] Don't consider reductions which are
partially outside the SCoP
On 01/07/2014 02:32, Johannes Doerfert wrote:
> Author: jdoerfert
> Date: Mon Jun 30 19:32:29 2014
> New Revision: 212080
>
> URL: http://llvm.org/viewvc/llvm-project?rev=212080&view=rev
> Log:
> [FIX] Don't consider reductions which are partially outside the SCoP
>
> + Test case
>
> Added:
>
> polly/trunk/test/ScopInfo/reduction_chain_partially_outside_the_scop.l
> l
> Modified:
> polly/trunk/lib/Analysis/ScopInfo.cpp
>
> Modified: polly/trunk/lib/Analysis/ScopInfo.cpp
> URL:
> http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/ScopInfo.
> cpp?rev=212080&r1=212079&r2=212080&view=diff
> ======================================================================
> ========
> --- polly/trunk/lib/Analysis/ScopInfo.cpp (original)
> +++ polly/trunk/lib/Analysis/ScopInfo.cpp Mon Jun 30 19:32:29 2014
> @@ -732,6 +732,10 @@ void ScopStmt::collectCandiateReductionL
> if (!BinOp->isCommutative() || !BinOp->isAssociative())
> return;
>
> + // Skip if the binary operator is outside the current SCoP if
> + (BinOp->getParent() != Store->getParent())
> + return;
You check here the equality of the BasicBlock, not the SCoP. I think this is
correct, but the comment is then inconsistent and needs to be fixed.
Thanks,
Tobias
More information about the llvm-commits
mailing list