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

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 30 11:18:54 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())
----------------
nikic wrote:

We should check for this inside alignment-from-assumptions, not here.

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


More information about the llvm-commits mailing list