Remove an unused argument.
This commit is contained in:
@@ -191,7 +191,7 @@ impl Context {
|
|||||||
|
|
||||||
/// Perform simple GVN on the function.
|
/// Perform simple GVN on the function.
|
||||||
pub fn simple_gvn<'a, FOI: Into<FlagsOrIsa<'a>>>(&mut self, fisa: FOI) -> CtonResult {
|
pub fn simple_gvn<'a, FOI: Into<FlagsOrIsa<'a>>>(&mut self, fisa: FOI) -> CtonResult {
|
||||||
do_simple_gvn(&mut self.func, &mut self.cfg, &mut self.domtree);
|
do_simple_gvn(&mut self.func, &mut self.domtree);
|
||||||
self.verify_if(fisa)
|
self.verify_if(fisa)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
//! A simple GVN pass.
|
//! A simple GVN pass.
|
||||||
|
|
||||||
use cursor::{Cursor, FuncCursor};
|
use cursor::{Cursor, FuncCursor};
|
||||||
use flowgraph::ControlFlowGraph;
|
|
||||||
use dominator_tree::DominatorTree;
|
use dominator_tree::DominatorTree;
|
||||||
use ir::{InstructionData, Function, Inst, Opcode, Type};
|
use ir::{InstructionData, Function, Inst, Opcode, Type};
|
||||||
use scoped_hash_map::ScopedHashMap;
|
use scoped_hash_map::ScopedHashMap;
|
||||||
@@ -17,9 +16,8 @@ fn trivially_unsafe_for_gvn(opcode: Opcode) -> bool {
|
|||||||
|
|
||||||
/// Perform simple GVN on `func`.
|
/// Perform simple GVN on `func`.
|
||||||
///
|
///
|
||||||
pub fn do_simple_gvn(func: &mut Function, cfg: &mut ControlFlowGraph, domtree: &mut DominatorTree) {
|
pub fn do_simple_gvn(func: &mut Function, domtree: &mut DominatorTree) {
|
||||||
let _tt = timing::gvn();
|
let _tt = timing::gvn();
|
||||||
debug_assert!(cfg.is_valid());
|
|
||||||
debug_assert!(domtree.is_valid());
|
debug_assert!(domtree.is_valid());
|
||||||
|
|
||||||
let mut visible_values: ScopedHashMap<(InstructionData, Type), Inst> = ScopedHashMap::new();
|
let mut visible_values: ScopedHashMap<(InstructionData, Type), Inst> = ScopedHashMap::new();
|
||||||
|
|||||||
Reference in New Issue
Block a user