[PATCH] D96023: [LoopVectorize] Calculate Max Feasible Scalable VF.

Sander de Smalen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 23 09:26:24 PST 2021


sdesmalen added inline comments.


================
Comment at: llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp:81
   case HK_FORCE:
+  case HK_SCALABLE:
     return (Val <= 1);
----------------
david-arm wrote:
> Not a problem really, but just wondering why you moved it here? I thought since Val is unsigned the two different checks are identical?
That's because Val can now also be -1 (<=> `FK_Undefined`), used for `-scalable-vectorization=on`.


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

https://reviews.llvm.org/D96023



More information about the llvm-commits mailing list