Commit b2a86b1
authored
[AMD] Use DenseMap in CanonicalizePointers FatPtrAttrs (#5889)
This PR fixes an assert thrown in `DenseMap::copyFrom`
that looks like this:
```
... Assertion `getNumBuckets() == other.getNumBuckets()' failed.
```
The call to `copyFrom` is via `SmallDenseMap`s copy ctor which fires in
our code in the default ctor of `CanonicalizePointers::FatPointers::FatPtrAttrs`
since `FatPtrAttrs` wraps a `llvm::SmallDenseMap<StringRef, Attribute>
attributes`.
I have locally verified the fix resolves the issue .1 parent 420c290 commit b2a86b1
File tree
1 file changed
+1
-1
lines changed- third_party/amd/lib/TritonAMDGPUTransforms
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
296 | 296 | | |
297 | 297 | | |
298 | 298 | | |
299 | | - | |
| 299 | + | |
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
| |||
0 commit comments