Some template functions were missing '&&' in function arguments,
therefore these were always taken by value after template instantiation.
This patch adds the double ampersand to introduce proper perfect
forwarding.
Paths
| Differential D106148
[NewPM] Fix wrong perfect forwardings ClosedPublic Authored by vhscampos on Jul 16 2021, 6:35 AM.
Details
Summary Some template functions were missing '&&' in function arguments, This patch adds the double ampersand to introduce proper perfect
Diff Detail
Unit TestsFailed Event TimelineComment Actions there are a couple more adaptors in CGSCCPassManager.h and LoopPassManager.h, should those be udpated too? vhscampos retitled this revision from [NewPM] Fix wrong perfect forwarding in createModuleToFunctionPassAdaptor to [NewPM] Fix wrong perfect forwardings.Jul 19 2021, 8:20 AM vhscampos added inline comments.
This revision is now accepted and ready to land.Jul 19 2021, 8:48 AM This revision was landed with ongoing or failed builds.Jul 19 2021, 9:21 AM Closed by commit rG59e4e53ead25: [NewPM] Fix wrong perfect forwardings (authored by vhscampos). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 359743 llvm/include/llvm/Analysis/CGSCCPassManager.h
llvm/include/llvm/IR/PassManager.h
llvm/include/llvm/Transforms/Scalar/LoopPassManager.h
|
forward?