Use #[cold] rather than #[inline(never)].

This gives optimizers more information about likely branch
probabilities.
This commit is contained in:
Dan Gohman
2018-03-28 17:15:19 -07:00
parent 4af95e37a6
commit 5377092e5b

View File

@@ -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 {}",