Skip to content

Commit 8a4ac35

Browse files
amielczaigcbot
authored andcommitted
Remove obsolete tests and conditions
Remove obsolete tests and conditions
1 parent 6da407f commit 8a4ac35

File tree

5 files changed

+4
-89
lines changed

5 files changed

+4
-89
lines changed

IGC/AdaptorOCL/CLElfLib/ElfReader.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ SPDX-License-Identifier: MIT
1010

1111
#include "CLElfTypes.h"
1212

13-
#if defined(_WIN32) && (__KLOCWORK__ == 0)
13+
#if defined(_WIN32)
1414
#define ELF_CALL __stdcall
1515
#else
1616
#define ELF_CALL

IGC/AdaptorOCL/CLElfLib/ElfWriter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ SPDX-License-Identifier: MIT
1212
#include <queue>
1313
#include <string>
1414

15-
#if defined(_WIN32) && (__KLOCWORK__ == 0)
15+
#if defined(_WIN32)
1616
#define ELF_CALL __stdcall
1717
#else
1818
#define ELF_CALL

IGC/Compiler/tests/Emu64Ops/partial-typed-pointers.ll

Lines changed: 0 additions & 42 deletions
This file was deleted.

IGC/Compiler/tests/Emu64Ops/partial.ll

Lines changed: 0 additions & 42 deletions
This file was deleted.

IGC/VectorCompiler/lib/Utils/GenX/Region.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,9 +219,8 @@ CMRegion::CMRegion(unsigned Bits, unsigned ElementBytes)
219219
IGC_ASSERT(Bits);
220220
Offset = llvm::countTrailingZeros(Bits);
221221

222-
// Coverity doesn't like the fact that countTrailingZeros may return 32
223-
// and that we could do shift by 32 here.
224-
// But. countTrailingZeros would return 32 in scenario where "Bits" variable is 0
222+
// It might seem problematic that countTrailingZeros may return 32 and that we could do shift by 32 here.
223+
// But countTrailingZeros would return 32 in scenario where "Bits" variable is 0
225224
// And IGC_ASSERT(Bits) covers this case... in debug mode, at least.
226225
if (Offset < std::numeric_limits<unsigned>::digits) {
227226
Bits >>= Offset;

0 commit comments

Comments
 (0)