Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
Hercules
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
Package registry
Model registry
Operate
Environments
Terraform modules
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
llvm
Hercules
Commits
70bb396d
Commit
70bb396d
authored
3 months ago
by
rarbore2
Browse files
Options
Downloads
Plain Diff
Merge branch 'ignore_antideps' into 'main'
Ignore anti-deps in GCM for now See merge request
!87
parents
19c7dde3
d3a245b5
No related branches found
No related tags found
1 merge request
!87
Ignore anti-deps in GCM for now
Pipeline
#200769
passed
3 months ago
Stage: build
Stage: test
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hercules_ir/src/gcm.rs
+18
-20
18 additions, 20 deletions
hercules_ir/src/gcm.rs
with
18 additions
and
20 deletions
hercules_ir/src/gcm.rs
+
18
−
20
View file @
70bb396d
...
...
@@ -73,14 +73,15 @@ pub fn gcm(
.as_ref
()
.into_iter
()
.map
(|
id
|
*
id
)
// TODO: once anti-dependence analysis is fixed, use it in GCM.
// Include "uses" from anti-dependencies.
.chain
(
antideps_uses
.get
(
&
id
)
.unwrap_or
(
&
vec!
[])
.into_iter
()
.map
(|
id
|
*
id
),
)
//
.chain(
//
antideps_uses
//
.get(&id)
//
.unwrap_or(&vec![])
//
.into_iter()
//
.map(|id| *id),
//
)
.map
(|
id
|
schedule_early
[
id
.idx
()])
.collect
();
if
let
Some
(
use_places
)
=
use_places
{
...
...
@@ -127,19 +128,16 @@ pub fn gcm(
// For every user, consider where we need to be to directly dominate the
// user.
for
user
in
def_use
.get_users
(
id
)
.as_ref
()
.into_iter
()
.map
(|
id
|
*
id
)
// Include "users" from anti-dependencies.
.chain
(
antideps_users
.get
(
&
id
)
.unwrap_or
(
&
vec!
[])
.into_iter
()
.map
(|
id
|
*
id
),
)
for
user
in
def_use
.get_users
(
id
)
.as_ref
()
.into_iter
()
.map
(|
id
|
*
id
)
// TODO: once anti-dependence analysis is fixed, use it in GCM.
// Include "users" from anti-dependencies.
//.chain(
// antideps_users
// .get(&id)
// .unwrap_or(&vec![])
// .into_iter()
// .map(|id| *id),
//)
{
if
let
Node
::
Phi
{
control
,
data
}
=
&
function
.nodes
[
user
.idx
()]
{
// For phis, we need to dominate the block jumping to the phi in
...
...
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