Skip to content

Commit 8b20224

Browse files
committed
---
yaml --- r: 156535 b: refs/heads/master c: 0c18da5 h: refs/heads/master i: 156533: 5b39445 156531: cc74aa8 156527: c6ade54 v: v3
1 parent fec8b2b commit 8b20224

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 0525bb76690232ce1ce2a3918ce031e2058c41dc
2+
refs/heads/master: 0c18da503ca674eb4cbf8504b52afb2d7c242ae5
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: d44ea720fa9dfe062ef06d0eb49a58d4e7e92344
55
refs/heads/try: 6601b0501e31d08d3892a2d5a7d8a57ab120bf75

trunk/src/libcore/intrinsics.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,11 @@ extern "rust-intrinsic" {
259259
/// Inform the optimizer that a condition is always true.
260260
/// If the condition is false, the behavior is undefined.
261261
///
262-
/// No code is generated for this intrisic.
262+
/// No code is generated for this intrinsic, but the optimizer will try
263+
/// to preserve it (and its condition) between passes, which may interfere
264+
/// with optimization of surrounding code and reduce performance. It should
265+
/// not be used if the invariant can be discovered by the optimizer on its
266+
/// own, or if it does not enable any significant optimizations.
263267
#[cfg(not(stage0))]
264268
pub fn assume(b: bool);
265269

0 commit comments

Comments
 (0)