[llvm] [PartiallyInlineLibCalls] Inline strcmp/strncmp calls like `strncmp(s, "ab")` (PR #89339)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 18 21:10:19 PDT 2024


nikic wrote:

PartiallyInlineLibCalls is a codegen pass, and as such probably not where you want to do this.

strcmp expansion support was added to AggressiveInstCombine at one point and then reverted due to a minor issue and apparently never reapplied. If you want to pursue this direction, I think the best first step would be to get 0b779b0daa4cfb7d99d10232890d98b43ff56ef0 un-reverted.

https://github.com/llvm/llvm-project/pull/89339


More information about the llvm-commits mailing list