Use #[cold] rather than #[inline(never)].
This gives optimizers more information about likely branch probabilities.
This commit is contained in:
@@ -92,7 +92,7 @@ pub trait CodeSink {
|
||||
}
|
||||
|
||||
/// Report a bad encoding error.
|
||||
#[inline(never)]
|
||||
#[cold]
|
||||
pub fn bad_encoding(func: &Function, inst: Inst) -> ! {
|
||||
panic!(
|
||||
"Bad encoding {} for {}",
|
||||
|
||||
Reference in New Issue
Block a user