Add an option to allow the attribute propagation on the index to be
disabled, to allow a workaround for issues (such as that fixed by
D70977). Restructure the code to include all attribute propagation
handling into propagateAttributes() itself (rather than having some in
the caller), which also simplifies handling of the new option.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/IR/ModuleSummaryIndex.cpp | ||
---|---|---|
166 | Do we still need to drop all the readonly writeonly flag if simply return before setWithAttributePropagation()? |
llvm/lib/IR/ModuleSummaryIndex.cpp | ||
---|---|---|
166 | Good point, this code predated having the WithAttributePropagation flag on the index, which gates its use. I stripped this stale code out, and moved the check of the ImportEnabled back to the caller. I am still moving the setting of the WithAttributePropagation flag into propagateAttributes where I think it makes more sense. |
Do we still need to drop all the readonly writeonly flag if simply return before setWithAttributePropagation()?