[llvm] [Support] Assert that DomTree nodes share parent (PR #101198)

Alexis Engelke via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 31 10:22:05 PDT 2024


================
@@ -526,6 +526,10 @@ bool llvm::isValidAssumeForContext(const Instruction *Inv,
     return AllowEphemerals || !isEphemeralValueOf(Inv, CxtI);
   }
 
+  // Inv and CxtI are in different functions.
+  if (Inv->getFunction() != CxtI->getFunction())
----------------
aengelke wrote:

Done + added test case.

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


More information about the llvm-commits mailing list