This is an attempt to move WholeProgramDevirt to the new remark API.
Details
Details
Diff Detail
Diff Detail
- Build Status
Buildable 9467 Build 9467: arc lint + arc unit
Event Timeline
Comment Actions
This patch segfaults in the following three tests:
LLVM :: Transforms/WholeProgramDevirt/devirt-single-impl-check.ll LLVM :: Transforms/WholeProgramDevirt/devirt-single-impl.ll LLVM :: Transforms/WholeProgramDevirt/virtual-const-prop-check.ll
Unfortunately I'm right at the edge of my C++ abilities, and can't actually work out how to make this work. The segfault is in computeHotness which uses the BFI code. I think it could be because a unique_ptr is being dropped, maybe? Any help would be greatly appreciated.
lib/Transforms/IPO/WholeProgramDevirt.cpp | ||
---|---|---|
532–535 | OwnedORE is freed here after the function returns and you're returning a pointer off of it. I am not sure if we have any better options than just passing nullptr for OREGetter from the old PM path and build ORE at the use site if OREGetter is not set. |
OwnedORE is freed here after the function returns and you're returning a pointer off of it.
I am not sure if we have any better options than just passing nullptr for OREGetter from the old PM path and build ORE at the use site if OREGetter is not set.