[all-commits] [llvm/llvm-project] bf60a1: Avoid comparisons between types of different width...

Aakanksha Patil via All-commits all-commits at lists.llvm.org
Fri Feb 25 09:33:35 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bf60a1c546ee496c1dd9336f2a2d8ea989c49558
      https://github.com/llvm/llvm-project/commit/bf60a1c546ee496c1dd9336f2a2d8ea989c49558
  Author: Aakanksha <paakan at amd.com>
  Date:   2022-02-25 (Fri, 25 Feb 2022)

  Changed paths:
    M llvm/lib/Target/AMDGPU/SIRegisterInfo.cpp
    M llvm/tools/llvm-pdbutil/DumpOutputStyle.cpp
    M llvm/tools/llvm-pdbutil/StreamUtil.cpp
    M llvm/utils/TableGen/X86RecognizableInstr.cpp

  Log Message:
  -----------
  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




More information about the All-commits mailing list