Commit 613066bf authored by Richard Angersbach's avatar Richard Angersbach
Browse files

Fix modification of IR_Reduction's target in CUDA_ReplaceReductionAccesses strat.

parent 7a759c1f
...@@ -59,8 +59,9 @@ case class CUDA_HandleFragmentLoopsWithReduction( ...@@ -59,8 +59,9 @@ case class CUDA_HandleFragmentLoopsWithReduction(
var replacement : IR_Expression = IR_NullExpression var replacement : IR_Expression = IR_NullExpression
this += new Transformation("Replace", { this += new Transformation("Replace", {
case red : IR_Reduction => red
case expr : IR_Expression if expr == redTarget => Duplicate(replacement) case expr : IR_Expression if expr == redTarget => Duplicate(replacement)
}) }, recursive = false)
} }
def matrixAssignment(stdFunc : String, dst : IR_Expression, src : IR_Expression, size : Int) = def matrixAssignment(stdFunc : String, dst : IR_Expression, src : IR_Expression, size : Int) =
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment