[llvm-bugs] [Bug 32897] New: NewGVN asserts with lookupOperandLeader(SI->getValueOperand()) != NewClass->getLeader()

via llvm-bugs llvm-bugs at lists.llvm.org
Tue May 2 18:26:53 PDT 2017


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

            Bug ID: 32897
           Summary: NewGVN asserts with
                    lookupOperandLeader(SI->getValueOperand()) !=
                    NewClass->getLeader()
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Scalar Optimizations
          Assignee: unassignedbugs at nondot.org
          Reporter: davide at freebsd.org
                CC: llvm-bugs at lists.llvm.org

Reduced:

define void @fn1() {
  %d = alloca i64
  br label %for.cond
for.cond:
  br i1 undef, label %if.end5, label %if.end
if.end:
  %e.2 = phi i64* [ %e.3, %if.then7 ], [ %d, %for.cond ]
  br label %if.end5
if.end5:
  %e.3 = phi i64* [ %e.2, %if.end ], [ undef, %for.cond ]
  br i1 undef, label %for.cond, label %if.then7
if.then7:
  store i64 undef, i64* %e.3
  %d.0.d.0.10 = load i64, i64* %d
  %add4 = add nsw i64 %d.0.d.0.10, 0
  store i64 %add4, i64* %d
  br label %if.end
}

-- 
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/20170503/5b5d532f/attachment-0001.html>


More information about the llvm-bugs mailing list