Enable Attributor's heap-to-stack to lower unbounded allocations given a max size of -1
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LG, one nit comment below, address as makes sense.
llvm/lib/Transforms/IPO/AttributorAttributes.cpp | ||
---|---|---|
5016 | If MaxHeapToStackSize is not -1, we can mark it nuw at least because we checked for overflow. |
If MaxHeapToStackSize is not -1, we can mark it nuw at least because we checked for overflow.
Should we just call the constructor, going through a builder seems kinda weird, except if we add a constant folder. Also, add a name, "h2s.calloc.size" or something.