Add branch order optimization to simple_preopt to encourage fallthroughs.
This commit is contained in:
committed by
Benjamin Bouvier
parent
57f087c9da
commit
947130be81
@@ -225,7 +225,7 @@ impl Context {
|
||||
|
||||
/// Perform pre-legalization rewrites on the function.
|
||||
pub fn preopt(&mut self, isa: &TargetIsa) -> CodegenResult<()> {
|
||||
do_preopt(&mut self.func);
|
||||
do_preopt(&mut self.func, &mut self.cfg);
|
||||
self.verify_if(isa)?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user