So far, whenever one wants to look at returned values, one had to deal
with the AAReturnedValues and potentially with the AAIsDead attribute.
In the same spirit as other checkForAllXXX methods, we add this
functionality now to the Attributor. By adopting the use sites we got
better results when return instructions were dead.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
This looks good. Just one comment inlined:
llvm/lib/Transforms/IPO/Attributor.cpp | ||
---|---|---|
1001 ↗ | (On Diff #213275) | Shouldn't AANonNullReturned also use A.checkForAllReturnedValuesAndReturnInsts(Pred))? |
llvm/lib/Transforms/IPO/Attributor.cpp | ||
---|---|---|
1001 ↗ | (On Diff #213275) | It should. I fixed it for the commit. |