[llvm-bugs] [Bug 52058] New: NewGVN.cpp:1623: (anonymous namespace)::CongruenceClass *(anonymous namespace)::NewGVN::getMemoryClass(const llvm::MemoryAccess *) const: Assertion `Result && "Should have found memory class"' failed. with opt -passes='loop-mssa(loop-rotate), newgvn'

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Oct 3 22:56:01 PDT 2021


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

            Bug ID: 52058
           Summary: NewGVN.cpp:1623: (anonymous
                    namespace)::CongruenceClass *(anonymous
                    namespace)::NewGVN::getMemoryClass(const
                    llvm::MemoryAccess *) const: Assertion `Result &&
                    "Should have found memory class"' failed. with opt
                    -passes='loop-mssa(loop-rotate),newgvn'
           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 25321
  --> https://bugs.llvm.org/attachment.cgi?id=25321&action=edit
bbi-61012.ll reproducer

llvm commit: 5f7a5353301

Reproduce with:
 opt -passes='loop-mssa(loop-rotate),newgvn' -o /dev/null bbi-61012.ll

Result:
opt: ../lib/Transforms/Scalar/NewGVN.cpp:1623: (anonymous
namespace)::CongruenceClass *(anonymous
namespace)::NewGVN::getMemoryClass(const llvm::MemoryAccess *) const: Assertion
`Result && "Should have found memory class"' failed.
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash
backtrace.
Stack dump:
0.      Program arguments: ../../master-github/llvm/build-all/bin/opt
-passes=loop-mssa(loop-rotate),newgvn -o /dev/null bbi-61012.ll
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH
or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
../../master-github/llvm/build-all/bin/opt(_ZN4llvm3sys15PrintStackTraceERNS_11raw_ostreamEi+0x23)[0x2b448b3]
../../master-github/llvm/build-all/bin/opt(_ZN4llvm3sys17RunSignalHandlersEv+0xee)[0x2b4252e]
../../master-github/llvm/build-all/bin/opt[0x2b44c36]
/lib64/libpthread.so.0(+0xf630)[0x7fe93a571630]
/lib64/libc.so.6(gsignal+0x37)[0x7fe937ca4387]
/lib64/libc.so.6(abort+0x148)[0x7fe937ca5a78]
/lib64/libc.so.6(+0x2f1a6)[0x7fe937c9d1a6]
/lib64/libc.so.6(+0x2f252)[0x7fe937c9d252]
../../master-github/llvm/build-all/bin/opt[0x299670c]
../../master-github/llvm/build-all/bin/opt[0x298c4f8]
../../master-github/llvm/build-all/bin/opt[0x2985a4b]
../../master-github/llvm/build-all/bin/opt(_ZN4llvm10NewGVNPass3runERNS_8FunctionERNS_15AnalysisManagerIS1_JEEE+0x270)[0x2983310]
../../master-github/llvm/build-all/bin/opt[0x2e2f07d]
../../master-github/llvm/build-all/bin/opt(_ZN4llvm11PassManagerINS_8FunctionENS_15AnalysisManagerIS1_JEEEJEE3runERS1_RS3_+0x205)[0x22f54f5]
../../master-github/llvm/build-all/bin/opt[0xad05ed]
../../master-github/llvm/build-all/bin/opt(_ZN4llvm27ModuleToFunctionPassAdaptor3runERNS_6ModuleERNS_15AnalysisManagerIS1_JEEE+0x286)[0x22f9876]
../../master-github/llvm/build-all/bin/opt[0x78ba9d]
../../master-github/llvm/build-all/bin/opt(_ZN4llvm11PassManagerINS_6ModuleENS_15AnalysisManagerIS1_JEEEJEE3runERS1_RS3_+0x208)[0x22f4638]
../../master-github/llvm/build-all/bin/opt(_ZN4llvm15runPassPipelineENS_9StringRefERNS_6ModuleEPNS_13TargetMachineEPNS_21TargetLibraryInfoImplEPNS_14ToolOutputFileES8_S8_S0_NS_8ArrayRefIS0_EENS_8opt_tool10OutputKindENSB_12VerifierKindEbbbbb+0x38f2)[0x783f82]
../../master-github/llvm/build-all/bin/opt(main+0x3aa6)[0x7964a6]
/lib64/libc.so.6(__libc_start_main+0xf5)[0x7fe937c90555]
../../master-github/llvm/build-all/bin/opt[0x77ef7c]
Abort

-- 
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/20211004/8ad97cfa/attachment-0001.html>


More information about the llvm-bugs mailing list