[PATCH] D77925: Revert "[TLI] Per-function fveclib for math library used for vectorization"

Teresa Johnson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 25 09:28:15 PDT 2020


tejohnson added a comment.

In D77925#2229484 <https://reviews.llvm.org/D77925#2229484>, @mehdi_amini wrote:

> Overall that would likely work for XLA. Something I'd like to mention though in response to:
>
>> The veclib type is also tied to the accepted values for -fveclib, which is a list of supported lib,
>
> `-fveclib` is a Clang thing, it shouldn't limit what LLVM does. Of course LLVM needs to support Clang, but does not have to inherit the limitation of map 1:1 to Clang UI.
> In particular as a library, it isn't clear why we would make the choice to write LLVM VecLib support this way.

Is there any benefit to keeping a closed list like this in LLVM? If not (and presumably clang is checking for valid values of -fveclib), then I think I agree with @mehdi_amini. Unless there is an efficiency reason for doing it via an enum. It's been awhile since I looked through this code in detail...


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D77925



More information about the llvm-commits mailing list