Avoid comparisons between types of different widths in a loop condition to prevent...
authorAakanksha <paakan@amd.com>
Fri, 25 Feb 2022 17:30:12 +0000 (17:30 +0000)
committerAakanksha <paakan@amd.com>
Fri, 25 Feb 2022 17:30:12 +0000 (17:30 +0000)
commitbf60a1c546ee496c1dd9336f2a2d8ea989c49558
treeff299765eea017ca14d158c34787b38bd7c4925e
parent37e84d9be06d52abeb387acdfb6dacb274c63da5
Avoid comparisons between types of different widths in a loop condition to prevent the loop from behaving unexpectedly

This change fixes the code violations flagged in AMD compute CodeQL scan -
Query Description: "Comparisons between types of different widths in a loop condition can cause the loop to behave unexpectedly."

Differential Revision: https://reviews.llvm.org/D120355
llvm/lib/Target/AMDGPU/SIRegisterInfo.cpp
llvm/tools/llvm-pdbutil/DumpOutputStyle.cpp
llvm/tools/llvm-pdbutil/StreamUtil.cpp
llvm/utils/TableGen/X86RecognizableInstr.cpp