From 8e06058bfe4b97fbd54f244cb7c72e9214bab7ed Mon Sep 17 00:00:00 2001 From: Philip Reames Date: Tue, 8 Mar 2022 09:42:43 -0800 Subject: [PATCH] [MSSA] Add clarifying comment for isOptimized on MemoryUse [nfc] --- llvm/include/llvm/Analysis/MemorySSA.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/llvm/include/llvm/Analysis/MemorySSA.h b/llvm/include/llvm/Analysis/MemorySSA.h index f119316129b3..fa333001156b 100644 --- a/llvm/include/llvm/Analysis/MemorySSA.h +++ b/llvm/include/llvm/Analysis/MemorySSA.h @@ -346,6 +346,9 @@ public: setOperand(0, DMA); } + /// The defining access of a MemoryUses are always optimized if queried from + /// outside MSSA construction itself. This result is only useful inside + /// the MSSA implementation. bool isOptimized() const { return getDefiningAccess() && OptimizedID == getDefiningAccess()->getID(); }