Bagel via llvm-dev
2021-Aug-21 20:41 UTC
[llvm-dev] question on LSRInstance::OptimizeLoopTermCond()
This optimization is never useful on my target architecture. There doesn't appear to be a TTI tuning knob to turn it off. Any ideas on how to do that? Thanks, brian
Chris Tetreault via llvm-dev
2021-Aug-23 16:28 UTC
[llvm-dev] question on LSRInstance::OptimizeLoopTermCond()
Having not scrutinized the code too closely, I bet there's a bunch of code that assumes this optimization has been done and attempts to pattern match for it. If you were to prevent it from running, I bet you'd see a bunch of other optimizations not happen. An easy way to test this is to just comment out the one call to it and see what happens. That said, if this optimization is not beneficial, perhaps you could add a pass to your backend that does the opposite? -----Original Message----- From: llvm-dev <llvm-dev-bounces at lists.llvm.org> On Behalf Of Bagel via llvm-dev Sent: Saturday, August 21, 2021 1:41 PM To: llvm-dev <llvm-dev at lists.llvm.org> Subject: [llvm-dev] question on LSRInstance::OptimizeLoopTermCond() WARNING: This email originated from outside of Qualcomm. Please be wary of any links or attachments, and do not enable macros. This optimization is never useful on my target architecture. There doesn't appear to be a TTI tuning knob to turn it off. Any ideas on how to do that? Thanks, brian _______________________________________________ LLVM Developers mailing list llvm-dev at lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev