Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
loopy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Kaushik Kulkarni
loopy
Commits
c4b5ce47
Commit
c4b5ce47
authored
8 years ago
by
Andreas Klöckner
Browse files
Options
Downloads
Patches
Plain Diff
More multiple-assignment wrinkle ironing
parent
9eda57f6
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
loopy/transform/arithmetic.py
+1
-1
1 addition, 1 deletion
loopy/transform/arithmetic.py
loopy/transform/precompute.py
+3
-2
3 additions, 2 deletions
loopy/transform/precompute.py
with
4 additions
and
3 deletions
loopy/transform/arithmetic.py
+
1
−
1
View file @
c4b5ce47
...
@@ -158,7 +158,7 @@ def collect_common_factors_on_increment(kernel, var_name, vary_by_axes=()):
...
@@ -158,7 +158,7 @@ def collect_common_factors_on_increment(kernel, var_name, vary_by_axes=()):
continue
continue
if
not
isinstance
(
insn
,
Assignment
):
if
not
isinstance
(
insn
,
Assignment
):
raise
LoopyError
(
"'
%s
'
modified by non-
expression instruction
"
raise
LoopyError
(
"'
%s
'
modified by non-
single-assignment
"
%
var_name
)
%
var_name
)
lhs
=
insn
.
assignee
lhs
=
insn
.
assignee
...
...
This diff is collapsed.
Click to expand it.
loopy/transform/precompute.py
+
3
−
2
View file @
c4b5ce47
...
@@ -426,8 +426,9 @@ def precompute(kernel, subst_use, sweep_inames=[], within=None,
...
@@ -426,8 +426,9 @@ def precompute(kernel, subst_use, sweep_inames=[], within=None,
import
loopy
as
lp
import
loopy
as
lp
for
insn
in
kernel
.
instructions
:
for
insn
in
kernel
.
instructions
:
if
isinstance
(
insn
,
lp
.
Assignment
):
if
isinstance
(
insn
,
lp
.
MultiAssignmentBase
):
invg
(
insn
.
assignee
,
kernel
,
insn
)
for
assignee
in
insn
.
assignees
:
invg
(
assignee
,
kernel
,
insn
)
invg
(
insn
.
expression
,
kernel
,
insn
)
invg
(
insn
.
expression
,
kernel
,
insn
)
access_descriptors
=
invg
.
access_descriptors
access_descriptors
=
invg
.
access_descriptors
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment