[llvm-bugs] [Bug 32267] New: GCNHazardRecognizer.cpp:75: bad condition ?

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Mar 14 10:24:59 PDT 2017


http://bugs.llvm.org/show_bug.cgi?id=32267

            Bug ID: 32267
           Summary: GCNHazardRecognizer.cpp:75: bad condition ?
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: dcb314 at hotmail.com
                CC: llvm-bugs at lists.llvm.org

llvm/lib/Target/AMDGPU/GCNHazardRecognizer.cpp:75:53: warning: enum constant in
boolean context [-Wint-in-bool-context]

static bool isSMovRel(unsigned Opcode) {
  return Opcode == AMDGPU::S_MOVRELS_B32 || AMDGPU::S_MOVRELS_B64 ||
         Opcode == AMDGPU::S_MOVRELD_B32 || AMDGPU::S_MOVRELD_B64;
}

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170314/c4d8c1e2/attachment.html>


More information about the llvm-bugs mailing list