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

            Bug ID: 49873
           Summary: NewGVN miscompile and crash
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Scalar Optimizations
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]

Created attachment 24727
  --> https://bugs.llvm.org/attachment.cgi?id=24727&action=edit
IR reproducer

NewGVN fails to add extra dependency when processing an icmp with one operand
being phi-node. it tries to evaluate a phi-of-icmp and later one of the icmp
proved to be constant based on a previous predicate, see the code after big
piece of comment in NewGVN::performSymbolicCmpEvaluation(). We need to make
sure the dependency between the real instruction and the predicate condition
was added.
opt -S -newgvn -o - reproduce.ll

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to