[llvm-bugs] [Bug 37291] New: Several build warnings for R600

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Apr 30 04:41:48 PDT 2018


https://bugs.llvm.org/show_bug.cgi?id=37291

            Bug ID: 37291
           Summary: Several build warnings for R600
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: AMDGPU
          Assignee: unassignedbugs at nondot.org
          Reporter: david.bolvansky at gmail.com
                CC: llvm-bugs at lists.llvm.org

Hello,

I built the llvm trunk but I saw some warnings like:

/home/xbolva00/LLVM/llvm/lib/Target/AMDGPU/R600ISelLowering.cpp: In member
function ‘llvm::SDValue
llvm::R600TargetLowering::OptimizeSwizzle(llvm::SDValue, llvm::SDValue*,
llvm::SelectionDAG&, const llvm::SDLoc&) const’:
/home/xbolva00/LLVM/llvm/lib/Target/AMDGPU/R600ISelLowering.cpp:1689:22:
warning: array subscript is above array bounds [-Warray-bounds]
       if (NewBldVec[i] == NewBldVec[j]) {
           ~~~~~~~~~~~^
[461/2134] Building CXX object lib/Tar...CodeGen.dir/R600MachineScheduler.cpp.o
In member function ‘llvm::SUnit* llvm::R600SchedStrategy::pickOther(int)’:
cc1plus: warning: ‘void* __builtin_memset(void*, int, long unsigned int)’:
specified size 18446744073709551608 exceeds maximum object size
9223372036854775807 [-Wstringop-overflow=]


There is something wrong going on in the cycle / condition at
https://github.com/llvm-mirror/llvm/blob/master/lib/Target/AMDGPU/R600ISelLowering.cpp#L1689

I am not sure what causes the second warning.

Thanks

-- 
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/20180430/d09729a2/attachment.html>


More information about the llvm-bugs mailing list