[Mlir-commits] [mlir] [MLIR] Handle call site locations when inlining (PR #132247)

Johannes de Fine Licht llvmlistbot at llvm.org
Fri Mar 21 02:22:15 PDT 2025


================
@@ -35,7 +60,7 @@ remapInlinedLocations(iterator_range<Region::iterator> inlinedBlocks,
     auto [it, inserted] = mappedLocations.try_emplace(loc);
     // Only query the attribute uniquer once per callsite attribute.
     if (inserted) {
-      auto newLoc = CallSiteLoc::get(loc, callerLoc);
+      auto newLoc = stackLocations(loc, callerLoc);
----------------
definelicht wrote:

```suggestion
      LocationAttr newLoc = stackLocations(loc, callerLoc);
```

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


More information about the Mlir-commits mailing list