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

            Bug ID: 46638
           Summary: Crash in isValidAssumeForContext after
                    lvmorg-11-init-19807-gcf1d9f9f49a
           Product: new-bugs
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedb...@nondot.org
          Reporter: dma...@mozilla.com
                CC: htmldevelo...@gmail.com, llvm-bugs@lists.llvm.org,
                    nikita....@gmail.com

Unfortunately the steps to reproduce are roughly "build Firefox with PGO and
LTO enabled for both C++ and Rust" which is an arduous process. Here's hoping
that maybe the bug can be found by inspection alone.

After
https://github.com/llvm/llvm-project/commit/cf1d9f9f49ae62ab4c7bb685d786a8daa7bc1d4a,
the following crash is seen:

> 0.    Running pass 'Function Pass Manager' on module 
> '/home/vm/src/mc/obj-llvmorg-11-init-19841-g7356b4243ad/x86_64-unknown-linux-gnu/release/libgkrust_gtest.a(wgpu_bindings-00b8588e9f85c3f5.wgpu_bindings.cqanh8rg-cgu.0.rcgu.o
>  at 12913238)'.
> 1.    Running pass 'Simplify the CFG' on function 
> '@wgpu_server_device_create_bind_group_layout'
>  #0 0x00007f1e117e568a llvm::sys::PrintStackTrace(llvm::raw_ostream&) 
> (/home/vm/src/llvmorg-11-init-19807-gcf1d9f9f49a/bin/../lib/libLLVM-11git.so+0x14df68a)
>  #1 0x00007f1e117e5964 SignalHandler(int) 
> (/home/vm/src/llvmorg-11-init-19807-gcf1d9f9f49a/bin/../lib/libLLVM-11git.so+0x14df964)
>  #2 0x00007f1e12e113c0 __restore_rt 
> (/lib/x86_64-linux-gnu/libpthread.so.0+0x153c0)
>  #3 0x00007f1e1181c036 llvm::BasicBlock::getSinglePredecessor() const 
> (/home/vm/src/llvmorg-11-init-19807-gcf1d9f9f49a/bin/../lib/libLLVM-11git.so+0x1516036)
>  #4 0x00007f1e12315d49 llvm::isValidAssumeForContext(llvm::Instruction 
> const*, llvm::Instruction const*, llvm::DominatorTree const*) 
> (/home/vm/src/llvmorg-11-init-19807-gcf1d9f9f49a/bin/../lib/libLLVM-11git.so+0x200fd49)
>  #5 0x00007f1e12251dfc SimplifyICmpInst(unsigned int, llvm::Value*, 
> llvm::Value*, llvm::SimplifyQuery const&, unsigned int) 
> (/home/vm/src/llvmorg-11-init-19807-gcf1d9f9f49a/bin/../lib/libLLVM-11git.so+0x1f4bdfc)
>  #6 0x00007f1e122564b8 llvm::SimplifyInstruction(llvm::Instruction*, 
> llvm::SimplifyQuery const&, llvm::OptimizationRemarkEmitter*) 
> (/home/vm/src/llvmorg-11-init-19807-gcf1d9f9f49a/bin/../lib/libLLVM-11git.so+0x1f504b8)
>  #7 0x00007f1e11e5b8e6 FoldCondBranchOnPHI(llvm::BranchInst*, 
> llvm::DataLayout const&, llvm::AssumptionCache*) 
> (/home/vm/src/llvmorg-11-init-19807-gcf1d9f9f49a/bin/../lib/libLLVM-11git.so+0x1b558e6)
>  #8 0x00007f1e11e5753d (anonymous 
> namespace)::SimplifyCFGOpt::simplifyCondBranch(llvm::BranchInst*, 
> llvm::IRBuilder<llvm::ConstantFolder, llvm::IRBuilderDefaultInserter>&) 
> (/home/vm/src/llvmorg-11-init-19807-gcf1d9f9f49a/bin/../lib/libLLVM-11git.so+0x1b5153d)
>  #9 0x00007f1e11e4dbca (anonymous 
> namespace)::SimplifyCFGOpt::simplifyOnce(llvm::BasicBlock*) 
> (/home/vm/src/llvmorg-11-init-19807-gcf1d9f9f49a/bin/../lib/libLLVM-11git.so+0x1b47bca)
> #10 0x00007f1e11e4c9b5 llvm::simplifyCFG(llvm::BasicBlock*, 
> llvm::TargetTransformInfo const&, llvm::SimplifyCFGOptions const&, 
> llvm::SmallPtrSetImpl<llvm::BasicBlock*>*) 
> (/home/vm/src/llvmorg-11-init-19807-gcf1d9f9f49a/bin/../lib/libLLVM-11git.so+0x1b469b5)

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