[llvm] [GVN] MemorySSA for GVN: embed the memory state in symbolic expressions (PR #123218)

Antonio Frighetto via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 16 08:31:51 PST 2025


================
@@ -2337,7 +2417,7 @@ uint32_t GVNPass::ValueTable::phiTranslateImpl(const BasicBlock *Pred,
   }
 
   if (uint32_t NewNum = expressionNumbering[Exp]) {
-    if (Exp.opcode == Instruction::Call && NewNum != Num)
+    if (!MSSA && Exp.opcode == Instruction::Call && NewNum != Num)
----------------
antoniofrighetto wrote:

Not completely sure why we need this here.

https://github.com/llvm/llvm-project/pull/123218


More information about the llvm-commits mailing list