[llvm-bugs] [Bug 42280] New: opt -early-cse sometimes crashing with Assertion `!Result || (LHS.isSentinel() && LHS.Inst == RHS.Inst) || getHashValueImpl(LHS) == getHashValueImpl(RHS)'

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Jun 14 02:24:53 PDT 2019


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: unassignedbugs at nondot.org
          Reporter: mikael.holmen at ericsson.com
                CC: llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190614/adc89d0b/attachment.html>


More information about the llvm-bugs mailing list