[llvm-bugs] [Bug 28664] New: Expression is always true (file LoopInterchange.cpp)

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Jul 22 07:04:39 PDT 2016


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

            Bug ID: 28664
           Summary: Expression is always true (file LoopInterchange.cpp)
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: Scalar Optimizations
          Assignee: unassignedbugs at nondot.org
          Reporter: appchecker at cnpo.ru
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Hello!

There is expression in function containsNoDependence (file
lib/Transforms/Scalar/LoopInterchange.cpp, line 214):

if (DepMatrix[Row][i] != '=' || DepMatrix[Row][i] != 'S' ||
        DepMatrix[Row][i] != 'I')

but it is always true.

See similar sample - https://ideone.com/OX3Oyp


This possible defect found by AppChecker
(https://cnpo.ru/en/solutions/appchecker.php)

-- 
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/20160722/3de1d666/attachment.html>


More information about the llvm-bugs mailing list