aboutsummaryrefslogtreecommitdiff
path: root/libcxx/include/__algorithm/remove.h
diff options
context:
space:
mode:
authorLewis Crawford <lcrawford@nvidia.com>2025-09-25 11:11:21 +0100
committerGitHub <noreply@github.com>2025-09-25 11:11:21 +0100
commita7f5abbe735faef7f13a1346167274fb8afb0b18 (patch)
tree3a1905ad5f965492e3fa10758965b0cb4a72a01a /libcxx/include/__algorithm/remove.h
parent50de925bcbd9175792c1f3c7786c94c0897ab876 (diff)
downloadllvm-a7f5abbe735faef7f13a1346167274fb8afb0b18.zip
llvm-a7f5abbe735faef7f13a1346167274fb8afb0b18.tar.gz
llvm-a7f5abbe735faef7f13a1346167274fb8afb0b18.tar.bz2
[NFC][InstSimplify] Refactor fminmax-folds.ll test (#160504)
Refactor all the tests in `fminmax-folds.ll` so that they are grouped by optimization, rather than by intrinsic. Instead of calling 1 intrinsic per function, each function now tests all 6 variants of the intrinsic. Results are stored to named pointers to maintain readability in this more compact form. This makes it much easier to compare the outputs from each intrinsic, rather than having them scattered in different functions in different parts of the file. It is also much more compact, so despite adding >50% more tests, the file is ~500 lines shorter. The tests added include: * Adding `maximumnum` and `minimumnum` everywhere (currently not optimized, but added as a baseline for future optimizations in #139581). * Adding separate tests for SNaN and QNaN (as a baseline for correctness improvements in #139581 ) * Adding tests for scalable vectors * Increasing the variety of types used in various tests by using more f16, f64, and vector types in tests. The only coverage removed is for tests with undef (only poison is now tested for). Overall, this refactor should increase coverage, improve readability with more comments and clear section headers, and make the tests much more compact and easier to review in #139581 by providing a clear baseline for each intrinsic's current behaviour.
Diffstat (limited to 'libcxx/include/__algorithm/remove.h')
0 files changed, 0 insertions, 0 deletions