There's no need to construct a map of attributes to modify throughout
the whole function before applying them all at once. The attribute
classes already have the necessary set behavior.
Details
Details
Diff Detail
Diff Detail
Paths
| Differential D140884
llvm-reduce: Simplify attribute reduction implementation ClosedPublic Authored by arsenm on Jan 3 2023, 5:16 AM.
Details Summary There's no need to construct a map of attributes to modify throughout
Diff Detail Event Timelinearsenm added a parent revision: D140882: llvm-reduce: Avoid invalid attribute reduction on optnone functions.Jan 3 2023, 5:16 AM nickdesaulniers added inline comments. This revision is now accepted and ready to land.Jan 9 2023, 3:58 PM
Revision Contents
Diff 485963 llvm/tools/llvm-reduce/deltas/ReduceAttributes.cpp
|
isn't explicit only necessary when the constructor has a single argument?