[MSSA] Add clarifying comment for isOptimized on MemoryUse [nfc]

This commit is contained in:
Philip Reames 2022-03-08 09:42:43 -08:00
parent 9397bdc67e
commit 8e06058bfe
1 changed files with 3 additions and 0 deletions

View File

@ -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();
}