[clang] [CIR] Fold load from constant alloca slots (PR #212284)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 28 07:04:18 PDT 2026


================
@@ -32,6 +33,68 @@ namespace mlir {
 
 namespace {
 
+/// Find the `cir.store` operation that stores to the given alloca and dominates
+/// the given load operation. Dominance calculation is done through the given
+/// DominanceInfo object.
+///
+/// Return nullptr if no such store operation exists. If multiple store
+/// operations satisfy the criteria, any of them may be returned.
----------------
erichkeane wrote:

This part is different than before, right? Before you were giving up if there were more than 1?  Is that intentional? 

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


More information about the cfe-commits mailing list