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.
|
/// Report a bad encoding error.
|
||||||
#[inline(never)]
|
#[cold]
|
||||||
pub fn bad_encoding(func: &Function, inst: Inst) -> ! {
|
pub fn bad_encoding(func: &Function, inst: Inst) -> ! {
|
||||||
panic!(
|
panic!(
|
||||||
"Bad encoding {} for {}",
|
"Bad encoding {} for {}",
|
||||||
|
|||||||
Reference in New Issue
Block a user