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

            Bug ID: 42280
           Summary: opt -early-cse sometimes crashing with Assertion
                    `!Result || (LHS.isSentinel() && LHS.Inst == RHS.Inst)
                    || getHashValueImpl(LHS) == getHashValueImpl(RHS)'
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Scalar Optimizations
          Assignee: unassignedb...@nondot.org
          Reporter: mikael.hol...@ericsson.com
                CC: llvm-bugs@lists.llvm.org

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

Running

 opt -early-cse -o /dev/null './reduced3.ll'

sometimes crashes with

opt: ../lib/Transforms/Scalar/EarlyCSE.cpp:353: static bool
llvm::DenseMapInfo<(anonymous namespace)::SimpleValue>::isEqual((anonymous
namespace)::SimpleValue, (anonymous namespace)::SimpleValue): Assertion
`!Result || (LHS.isSentinel() && LHS.Inst == RHS.Inst) || getHashValueImpl(LHS)
== getHashValueImpl(RHS)' failed.

Usually it crashes within 30 attempts but sometimes it takes a lot more.

(On earlier versions of the compiler it crashed like once in 3000 attempts so
we seem to be "lucky" with current trunk version r363355)

The input can for sure be reduced more but it's a bit messy since it's not
crashing all the time.

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

Reply via email to