diff --git a/hercules_ir/src/gcm.rs b/hercules_ir/src/gcm.rs index d6eb9b8713751145df6bb3d59443ec4d4e6286cf..44d89ce8574a7a3a1de5c037a1ead9be6f41f0e2 100644 --- a/hercules_ir/src/gcm.rs +++ b/hercules_ir/src/gcm.rs @@ -1,5 +1,3 @@ -extern crate bitvec; - use std::collections::{HashMap, HashSet, VecDeque}; use std::iter::{zip, FromIterator}; @@ -183,6 +181,8 @@ pub fn gcm( // node. let schedule_early = schedule_early[id.idx()].unwrap(); let mut chain = dom + // If the node has no users, then it doesn't really matter where we + // place it - just place it at the early placement. .chain(lca.unwrap_or(schedule_early), schedule_early) // Filter the dominator chain by control nodes in the same partition // as this data node, if the data node is in a partition already.