[PATCH] D89665: [LSR] ignore profitable chain optimization when instruction number is the major cost
Sam Parker via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 21 07:35:04 PDT 2020
samparker added inline comments.
================
Comment at: llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp:2871
+ // example instruction number.
+ if (!TTI.isRegNumMajorCostOfLSR())
+ return false;
----------------
This will still interfere because if any element in the chain is a ProfitableLSRChainElement, we should return true. So the major cost check should only be executing just before we start doing final cost calculation outside of the loop.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D89665/new/
https://reviews.llvm.org/D89665
More information about the llvm-commits
mailing list