Skip to content

Commit a88191c

Browse files
[SYCL][NFC] Optimize vector_byte.cpp E2E test (#12080)
Removed `SYCL_SIMPLE_SWIZZLES` macro definition, because those swizzles are not used by the test. Defining `SYCL_SIMPLE_SWIZZLES` has significant impact on compilation time: the test compiles about twice faster without it on my local machine. Also fixed warnings about unused variable.
1 parent 732f724 commit a88191c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

sycl/test-e2e/Basic/vector_byte.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@
1212
//
1313
//===----------------------------------------------------------------------===//
1414

15-
#define SYCL_SIMPLE_SWIZZLES
1615
#include <sycl/sycl.hpp>
1716

17+
#include <cstddef> // std::byte
18+
#include <tuple> // std::ignore
19+
1820
int main() {
1921
std::byte bt{7};
2022
// constructors
@@ -30,7 +32,7 @@ int main() {
3032
// operator[]
3133
assert(vb16[3] == std::byte{2});
3234
// explicit conversion
33-
std::byte(vb1.x());
35+
std::ignore = std::byte(vb1.x());
3436
std::byte b = vb1;
3537

3638
// operator=

0 commit comments

Comments
 (0)