[PATCH] D119121: [test-suite] Add unit tests for vectorizer memory runtime checks.

Kai Nacke via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 16 06:30:44 PDT 2022


Kai added inline comments.
Herald added a project: All.


================
Comment at: SingleSource/UnitTests/Vectorizer/runtime-checks.cpp:17
+static void init_data(const std::unique_ptr<Ty[]> &A, unsigned N) {
+  std::uniform_int_distribution<Ty> distrib(std::numeric_limits<Ty>::min(),
+                                            std::numeric_limits<Ty>::max());
----------------
According to https://reviews.llvm.org/D120630 `std::uniform_int_distribution<char>` is UB. It gives a compile error with latest C++lib.


Repository:
  rT test-suite

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

https://reviews.llvm.org/D119121



More information about the llvm-commits mailing list