[PATCH] D130618: [AArch64][LoopVectorize] Enable tail-folding of simple loops on neoverse-v1

David Sherwood via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 25 01:28:49 PDT 2023


david-arm added inline comments.


================
Comment at: llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp:60-61
+  uint8_t DefaultBits = TFDisabled;
+  std::string OrigVal;
+  SmallVector<StringRef, 4> TailFoldTypes;
+
----------------
sdesmalen wrote:
> sdesmalen wrote:
> > nit: Could you rename this to UnparsedOptionString or something?
> Rather than storing the string and substrings, can you just do the parsing as part of the constructor of TailFoldingOption so that you only need to store the bits?
I seem to remember there was a problem with ordering where we had to ensure we got the same behaviour for each version of this command line:

`-mcpu=native -mllvm -sve-tail-folding=default`

and

`-mllvm -sve-tail-folding=default -mcpu=native`

which is tested in sve-tail-folding-option.ll. I think it meant that we could only deal with the options after the entire command line has been parsed, so we couldn't do it in the constructor. I'll double check though as I may have remembered incorrectly!


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

https://reviews.llvm.org/D130618



More information about the llvm-commits mailing list