[libcxx-commits] [PATCH] D102005: [libcxx]: Unroll std::find on AIX

Roman Lebedev via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Fri May 7 11:39:52 PDT 2021


lebedev.ri added a comment.

Echoing @xbolva00's comment, why is compiler's hand being forced here in the first place?
I'm disheartened by seeing such changes, because there's clearly no cost modelling here,
and it is assumed that one size fits all. If this is beneficial, then this is certainly
a LLVM bug. In particular, LoopFullUnrollPass says `will not try to unroll loop with
runtime trip count -unroll-runtime not given`, and LoopUnrollPass says:
`Bailout for multi-exit handling when latch exit has >1 predecessor.
Multiple exit/exiting blocks in loop and multi-exit unrolling not enabled!`

Fixing those instead would benefit everyone.


Repository:
  rCXX libc++

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D102005/new/

https://reviews.llvm.org/D102005



More information about the libcxx-commits mailing list