CT_01_019 - Enable TTI::shouldDropLSRSolutionIfLessProfitable by default (LLVM)

CT_01_019 - Enable TTI::shouldDropLSRSolutionIfLessProfitable by default (LLVM)

About

This avoids some cases where Loop Strength Reduce produces results that lead to very poor codegen. There's a chance we'll see minor degradations for some inputs in the case that our metrics say the found solution is worse, but in reality it's better than the starting point.

Previously commit and reverted patch: https://github.com/llvm/llvm-project/pull/89927

Stakeholders/Partners

RISE:

Rivos: Philip Reames

Igalia: Alex Bradbuy (contracted on behalf of Rivos)

Dependencies

 

 

Status

Development

in progress

 

Development Timeline

2H2024

 

Upstreaming

IN Progress

 

Upstream Version

 

 

Contacts

Philip Reames (Rivos)

Alex Bradbury (Igalia)

 

Dependencies

 

 

 

Updates

Jul 15, 2024 

  • Created project. Patch was previously committed and reverted due to regressions.