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

            Bug ID: 46276
           Summary: llc crashes with Instructions.cpp:2056: bool
                    isSingleSourceMaskImpl(ArrayRef<int>, int): Assertion
                    `(UsesLHS ^ UsesRHS) && "Should have selected from
                    exactly 1 source"' failed.
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Common Code Generator Code
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]

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

Reproduce with:
 llc -march=x86-64 -mcpu=corei7 -o /dev/null cgp_crash.ll

Result:
 llc: ../lib/IR/Instructions.cpp:2056: bool
isSingleSourceMaskImpl(ArrayRef<int>, int): Assertion `(UsesLHS ^ UsesRHS) &&
"Should have selected from exactly 1 source"' failed.

With -debug-pass=Executions the last thing we see is
 [2020-06-11 09:28:04.823322421] 0x5ed2ea0     Executing Pass 'CodeGen Prepare'
on Function 'autogen_SD20565'...


Starts happening with fa8bff0cd1a:

    [CostModel] Unify getArithmeticInstrCost

    Add the remaining arithmetic opcodes into the generic implementation
    of getUserCost and then call this from getInstructionThroughput. Most
    of the backends have been modified to return the base implementation
    for cost kinds other RecipThroughput. The outlier here is AMDGPU
    which already uses getArithmeticInstrCost for all the cost kinds.
    This change means that most of the opcodes can be removed from that
    backends implementation of getUserCost.

    Differential Revision: https://reviews.llvm.org/D80992

-- 
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