Remove comment about a branch being optimized out, fix #45831
Most often, this code is used through the `std::heap::Heap` and `#[gloabal_allocator]` indirection, so this branch is not optimized out anymore.
This commit is contained in:
@@ -72,8 +72,7 @@ mod contents {
|
|||||||
const MALLOCX_ZERO: c_int = 0x40;
|
const MALLOCX_ZERO: c_int = 0x40;
|
||||||
|
|
||||||
// The minimum alignment guaranteed by the architecture. This value is used to
|
// The minimum alignment guaranteed by the architecture. This value is used to
|
||||||
// add fast paths for low alignment values. In practice, the alignment is a
|
// add fast paths for low alignment values.
|
||||||
// constant at the call site and the branch will be optimized out.
|
|
||||||
#[cfg(all(any(target_arch = "arm",
|
#[cfg(all(any(target_arch = "arm",
|
||||||
target_arch = "mips",
|
target_arch = "mips",
|
||||||
target_arch = "powerpc")))]
|
target_arch = "powerpc")))]
|
||||||
|
|||||||
@@ -25,8 +25,7 @@
|
|||||||
#![rustc_alloc_kind = "lib"]
|
#![rustc_alloc_kind = "lib"]
|
||||||
|
|
||||||
// The minimum alignment guaranteed by the architecture. This value is used to
|
// The minimum alignment guaranteed by the architecture. This value is used to
|
||||||
// add fast paths for low alignment values. In practice, the alignment is a
|
// add fast paths for low alignment values.
|
||||||
// constant at the call site and the branch will be optimized out.
|
|
||||||
#[cfg(all(any(target_arch = "x86",
|
#[cfg(all(any(target_arch = "x86",
|
||||||
target_arch = "arm",
|
target_arch = "arm",
|
||||||
target_arch = "mips",
|
target_arch = "mips",
|
||||||
|
|||||||
Reference in New Issue
Block a user