[llvm-bugs] [Bug 31573] New: NewGVN fails to verify memory congruency

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Jan 7 12:07:33 PST 2017


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

            Bug ID: 31573
           Summary: NewGVN fails to verify memory congruency
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Scalar Optimizations
          Assignee: unassignedbugs at nondot.org
          Reporter: davide at freebsd.org
                CC: dberlin at dberlin.org, llvm-bugs at lists.llvm.org,
                    paulsson at linux.vnet.ibm.com
            Blocks: 30995
    Classification: Unclassified

Reduced from Jonas Paulsson's report.

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

while.cond:
  %meh = phi i8* [ %blah, %entry ], [ null, %while.body ]
  switch i32 undef, label %while.body [
    i32 666, label %while.end
  ]

while.body:
  br label %while.cond

while.end:
  store i8 0, i8* %meh, align 1
  store i8 0, i8* %blah, align 1
  ret void
}

$ opt -newgvn patatuccio.ll -o /dev/null
opt: ../lib/Transforms/Scalar/NewGVN.cpp:1477: void
NewGVN::verifyMemoryCongruency(): Assertion
`ValueToClass.lookup(FirstMUD->getMemoryInst()) ==
ValueToClass.lookup(SecondMUD->getMemoryInst()) && "The instructions for these
memory operations should have been in " "the same congruence class"' failed.
[...]

-- 
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/20170107/7fdb17e5/attachment.html>


More information about the llvm-bugs mailing list