Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interpreter: figure out if it's possible to eliminate redundancy b/w StoreOp and AffineStoreOp #18

Open
bollu opened this issue Dec 8, 2020 · 0 comments

Comments

@bollu
Copy link
Owner

bollu commented Dec 8, 2020

No description provided.

bollu added a commit that referenced this issue Jan 6, 2021
… a case somewhere.

==20217==ERROR: AddressSanitizer: SEGV on unknown address 0x00007a00001a (pc 0x7f7e1f6d9147 bp 0x000000000000 sp 0x7fffa7093fc0 T0)
==20217==The signal is caused by a WRITE memory access.
    #0 0x7f7e1f6d9147 in mlir::IROperand<mlir::OpOperand, mlir::detail::OpaqueValue>::insertIntoCurrent() /home/bollu/work/mlir/llvm-project/mlir/include/mlir/IR/UseDefLists.h:203
    #1 0x7f7e1f6d9147 in mlir::IROperand<mlir::OpOperand, mlir::detail::OpaqueValue>::IROperand(mlir::Operation*, mlir::detail::OpaqueValue) /home/bollu/work/mlir/llvm-project/mlir/include/mlir/IR/UseDefLists.h:117
    #2 0x7f7e1f6d9147 in mlir::OpOperand::OpOperand(mlir::Operation*, mlir::detail::OpaqueValue) /home/bollu/work/mlir/llvm-project/mlir/include/mlir/IR/UseDefLists.h:268
    #3 0x7f7e1f6d9147 in mlir::detail::OperandStorage::OperandStorage(mlir::Operation*, mlir::ValueRange) /home/bollu/work/mlir/llvm-project/mlir/lib/IR/OperationSupport.cpp:232
    #4 0x7f7e1f6cd689 in mlir::Operation::create(mlir::Location, mlir::OperationName, mlir::TypeRange, mlir::ValueRange, mlir::DictionaryAttr, mlir::BlockRange, unsigned int) /home/bollu/work/mlir/llvm-project/mlir/lib/IR/Operation.cpp:157
    #5 0x7f7e1f6cd800 in mlir::Operation::create(mlir::Location, mlir::OperationName, mlir::TypeRange, mlir::ValueRange, mlir::DictionaryAttr, mlir::BlockRange, mlir::RegionRange) /home/bollu/work/mlir/llvm-project/mlir/lib/IR/Operation.cpp:97
    #6 0x7f7e1f6cdb46 in mlir::Operation::create(mlir::OperationState const&) /home/bollu/work/mlir/llvm-project/mlir/lib/IR/Operation.cpp:87
    #7 0x7f7e1f65b59b in mlir::OpBuilder::createOperation(mlir::OperationState const&) /home/bollu/work/mlir/llvm-project/mlir/lib/IR/Builders.cpp:394
    #8 0x7f7e1f9a088f in parseCustomOperation /home/bollu/work/mlir/llvm-project/mlir/lib/Parser/Parser.cpp:1680
    #9 0x7f7e1f9a088f in (anonymous namespace)::OperationParser::parseOperation() /home/bollu/work/mlir/llvm-project/mlir/lib/Parser/Parser.cpp:693
    #10 0x7f7e1f9a299c in (anonymous namespace)::OperationParser::parseBlockBody(mlir::Block*) /home/bollu/work/mlir/llvm-project/mlir/lib/Parser/Parser.cpp:1868
    #11 0x7f7e1f9a3509 in parseBlock /home/bollu/work/mlir/llvm-project/mlir/lib/Parser/Parser.cpp:1835
    #12 0x7f7e1f9a3509 in (anonymous namespace)::OperationParser::parseRegion(mlir::Region&, llvm::ArrayRef<std::pair<(anonymous namespace)::OperationParser::SSAUseInfo, mlir::Type> >, bool) /home/bollu/work/mlir/llvm-project/mlir/lib/Parser/Parser.cpp:1781
    #13 0x7f7e1f9a3696 in (anonymous namespace)::CustomOpAsmParser::parseRegion(mlir::Region&, llvm::ArrayRef<mlir::OpAsmParser::OperandType>, llvm::ArrayRef<mlir::Type>, bool) /home/bollu/work/mlir/llvm-project/mlir/lib/Parser/Parser.cpp:1453
    #14 0x7f7e1f9a3a5e in (anonymous namespace)::CustomOpAsmParser::parseOptionalRegion(mlir::Region&, llvm::ArrayRef<mlir::OpAsmParser::OperandType>, llvm::ArrayRef<mlir::Type>, bool) /home/bollu/work/mlir/llvm-project/mlir/lib/Parser/Parser.cpp:1465
    #15 0x7f7e1f6b8e01 in mlir::impl::parseFunctionLikeOp(mlir::OpAsmParser&, mlir::OperationState&, bool, llvm::function_ref<mlir::Type (mlir::Builder&, llvm::ArrayRef<mlir::Type>, llvm::ArrayRef<mlir::Type>, mlir::impl::VariadicFlag, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&)>) /home/bollu/work/mlir/llvm-project/mlir/lib/IR/FunctionImplementation.cpp:213
    #16 0x7f7e1f66db56 in parseFuncOp /home/bollu/work/mlir/llvm-project/mlir/lib/IR/BuiltinDialect.cpp:120
    #17 0x7f7e1f66db56 in mlir::FuncOp::parse(mlir::OpAsmParser&, mlir::OperationState&) /home/bollu/work/mlir/llvm-project/build/tools/mlir/include/mlir/IR/BuiltinOps.cpp.inc:209
    #18 0x7f7e1f9a02e0 in parseOperation /home/bollu/work/mlir/llvm-project/mlir/lib/Parser/Parser.cpp:895
    #19 0x7f7e1f9a02e0 in parseCustomOperation /home/bollu/work/mlir/llvm-project/mlir/lib/Parser/Parser.cpp:1672
    #20 0x7f7e1f9a02e0 in (anonymous namespace)::OperationParser::parseOperation() /home/bollu/work/mlir/llvm-project/mlir/lib/Parser/Parser.cpp:693
    #21 0x7f7e1f9a170e in parse /home/bollu/work/mlir/llvm-project/mlir/lib/Parser/Parser.cpp:2041
    #22 0x7f7e1f9a170e in mlir::parseSourceFile(llvm::SourceMgr const&, mlir::Block*, mlir::MLIRContext*, mlir::LocationAttr*) /home/bollu/work/mlir/llvm-project/mlir/lib/Parser/Parser.cpp:2098
    #23 0x7f7e2a100dda in mlir::OwningOpRef<mlir::ModuleOp> mlir::parseSourceFile<mlir::ModuleOp>(llvm::SourceMgr const&, mlir::MLIRContext*) /home/bollu/work/mlir/llvm-project/mlir/include/mlir/Parser.h:132
    #24 0x7f7e2a100dda in mlir::parseSourceFile(llvm::SourceMgr const&, mlir::MLIRContext*) /home/bollu/work/mlir/llvm-project/mlir/include/mlir/Parser.h:201
    #25 0x7f7e2a100dda in performActions(llvm::raw_ostream&, bool, bool, llvm::SourceMgr&, mlir::MLIRContext*, mlir::PassPipelineCLParser const&) (.constprop.144) /home/bollu/work/mlir/llvm-project/mlir/lib/Support/MlirOptMain.cpp:55
    #26 0x7f7e2a101fbe in processBuffer(llvm::raw_ostream&, std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer> >, bool, bool, bool, bool, mlir::PassPipelineCLParser const&, mlir::DialectRegistry&) /home/bollu/work/mlir/llvm-project/mlir/lib/Support/MlirOptMain.cpp:110
    #27 0x7f7e2a102135 in mlir::MlirOptMain(llvm::raw_ostream&, std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer> >, mlir::PassPipelineCLParser const&, mlir::DialectRegistry&, bool, bool, bool, bool, bool) /home/bollu/work/mlir/llvm-project/mlir/lib/Support/MlirOptMain.cpp:148
    #28 0x7f7e2a103a0e in mlir::MlirOptMain(int, char**, llvm::StringRef, mlir::DialectRegistry&, bool) /home/bollu/work/mlir/llvm-project/mlir/lib/Support/MlirOptMain.cpp:251
    #29 0x4e9fc1 in main /home/bollu/work/mlir/lz/build/../hask-opt/hask-opt.cpp:100:17
    #30 0x7f7e198cdbf6 in __libc_start_main /build/glibc-S7xCS9/glibc-2.27/csu/../csu/libc-start.c:310
    #31 0x43f5a9 in _start (/home/bollu/work/mlir/lz/build/bin/hask-opt+0x43f5a9)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /home/bollu/work/mlir/llvm-project/mlir/include/mlir/IR/UseDefLists.h:203 in mlir::IROperand<mlir::OpOperand, mlir::detail::OpaqueValue>::insertIntoCurrent()
==20217==ABORTING
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant