Remove an unused argument.

This commit is contained in:
Dan Gohman
2018-03-26 21:58:46 -07:00
parent a661a8a9bb
commit 3b0a9b9ecf
2 changed files with 2 additions and 4 deletions

View File

@@ -191,7 +191,7 @@ impl Context {
/// Perform simple GVN on the function.
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)
}

View File

@@ -1,7 +1,6 @@
//! A simple GVN pass.
use cursor::{Cursor, FuncCursor};
use flowgraph::ControlFlowGraph;
use dominator_tree::DominatorTree;
use ir::{InstructionData, Function, Inst, Opcode, Type};
use scoped_hash_map::ScopedHashMap;
@@ -17,9 +16,8 @@ fn trivially_unsafe_for_gvn(opcode: Opcode) -> bool {
/// 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();
debug_assert!(cfg.is_valid());
debug_assert!(domtree.is_valid());
let mut visible_values: ScopedHashMap<(InstructionData, Type), Inst> = ScopedHashMap::new();