[llvm-bugs] [Bug 31594] New: NewGVN failure while verifying memory congruency

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Jan 9 19:29:02 PST 2017


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

            Bug ID: 31594
           Summary: NewGVN failure while verifying memory congruency
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: Scalar Optimizations
          Assignee: unassignedbugs at nondot.org
          Reporter: davide at freebsd.org
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

I think this is a slight variation of PR31573.
  store i8 0, i8* %blah, align 1
and
  store i8 0, i8* %foo.lcssa, align 1
are believed to be congruent but they belong to two different congruence
classes, hence the assertion firing.


define void @patatino(i8* %blah, i32 %choice) {
entry:
  br label %while.cond

while.cond:
  %foo = phi i8* [ %blah, %entry ], [ null, %while.body ]
  switch i32 %choice, label %while.body [
    i32 -1, label %while.end
    i32 40, label %land.end
  ]

land.end:
  br label %while.end

while.body:
  br label %while.cond

while.end:
  %foo.lcssa = phi i8* [ %foo, %land.end ], [ %foo, %while.cond ]
  store i8 0, i8* %foo.lcssa, align 1
  %0 = load i8, i8* %blah, align 1
  %loaded = icmp eq i8 %0, 0
  store i8 0, i8* %blah, align 1
  ret void
}

-- 
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/20170110/e378a01b/attachment.html>


More information about the llvm-bugs mailing list