You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove pass that promotes heap allocs to stack in quantum function (#2172)
**Context:** The
[`promote-buffers-to-stack`](https://mlir.llvm.org/docs/Passes/#-promote-buffers-to-stack)
when used with quantum operators in deep nested structures has been
observed to perform a large number of `alloca` calls whose lifetime is
at the function scope. This has caused failures due to the limited stack
size on given systems, resulting in catastrophic program failure during
execution. This PR temporarily removes the pass from the given
bufferization pipeline stage, which has been observed to remediate the
issue.
**Description of the Change:** Remove `promote-buffers-to-stack` pass
from Catalyst's pipeline
**Benefits:** Fixes issues with stack allocations resulting in SIGSEGV
errrors.
**Possible Drawbacks:** Potential performance loss due to non-conversion
of heap allocations.
**Related GitHub Issues:**
0 commit comments