[PATCH] D145210: [Pipeline] Adjust PostOrderFunctionAttrs placement in simplification pipeline
Changpeng Fang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 15 10:31:37 PDT 2023
cfang added inline comments.
Herald added a subscriber: hoy.
================
Comment at: llvm/lib/Passes/PassBuilderPipelines.cpp:838
+ // functions.
+ MainCGPipeline.addPass(PostOrderFunctionAttrsPass(/*SkipNonRecursive*/ true));
----------------
We found that "nofree" attribute will greatly affect the earlyCSE pass in function simplification. In our case, missing nofree essentially disabled earlyCSE which resulted in a huge performance regression (register pressure). Other optimizations like GVN in function simplification may also be affected by function attributes.
So is it possible that we just run this pass twice? Thanks.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D145210/new/
https://reviews.llvm.org/D145210
More information about the llvm-commits
mailing list