From 67f5c167a8083154fbc86431b16789ef14183fa8 Mon Sep 17 00:00:00 2001 From: Amanieu d'Antras Date: Tue, 27 Sep 2022 00:14:08 +0100 Subject: [PATCH] Fix documentation for `inst_clobbers` (#89) Clobbers don't conflict with early uses, so they effectively act as a late def, not an early def. --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 1b79368..06e96ed 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1032,7 +1032,7 @@ pub trait Function { /// that must be live across the instruction. /// /// Another way of seeing this is that a clobber is equivalent to - /// an "early def" of a fresh vreg that is not used anywhere else + /// a "late def" of a fresh vreg that is not used anywhere else /// in the program, with a fixed-register constraint that places /// it in a given PReg chosen by the client prior to regalloc. ///