Failed

LLVM.Transforms/LoopVectorize.outer-loop-vec-phi-predecessor-order.ll (from LLVM)

Failing for the past 2 builds (Since Failed#7703 )
Took 1 min 18 sec.

Stacktrace

Script:
--
: 'RUN: at line 2';   /Users/buildslave/jenkins/workspace/clang-stage2-cmake-RgSan/clang-build/bin/opt -enable-vplan-native-path -loop-vectorize -S /Users/buildslave/jenkins/workspace/clang-stage2-cmake-RgSan/llvm-project/llvm/test/Transforms/LoopVectorize/outer-loop-vec-phi-predecessor-order.ll | /Users/buildslave/jenkins/workspace/clang-stage2-cmake-RgSan/clang-build/bin/FileCheck /Users/buildslave/jenkins/workspace/clang-stage2-cmake-RgSan/llvm-project/llvm/test/Transforms/LoopVectorize/outer-loop-vec-phi-predecessor-order.ll
--
Exit Code: 2

Command Output (stderr):
--
+ : 'RUN: at line 2'
+ /Users/buildslave/jenkins/workspace/clang-stage2-cmake-RgSan/clang-build/bin/opt -enable-vplan-native-path -loop-vectorize -S /Users/buildslave/jenkins/workspace/clang-stage2-cmake-RgSan/llvm-project/llvm/test/Transforms/LoopVectorize/outer-loop-vec-phi-predecessor-order.ll
+ /Users/buildslave/jenkins/workspace/clang-stage2-cmake-RgSan/clang-build/bin/FileCheck /Users/buildslave/jenkins/workspace/clang-stage2-cmake-RgSan/llvm-project/llvm/test/Transforms/LoopVectorize/outer-loop-vec-phi-predecessor-order.ll
=================================================================
==48006==ERROR: AddressSanitizer: heap-use-after-free on address 0x60600002e070 at pc 0x00010bf11b87 bp 0x7ffee94c64c0 sp 0x7ffee94c64b8
READ of size 8 at 0x60600002e070 thread T0
    #0 0x10bf11b86 in llvm::TrackingMDRef::TrackingMDRef(llvm::TrackingMDRef const&) TrackingMDRef.h:33
    #1 0x10b1e3b76 in llvm::IRBuilderBase::SetInsertPoint(llvm::BasicBlock*, llvm::ilist_iterator<llvm::ilist_detail::node_options<llvm::Instruction, false, false, void>, false, false>) IRBuilder.h:204
    #2 0x10ba6e71a in llvm::IRBuilderBase::InsertPointGuard::~InsertPointGuard() IRBuilder.h:382
    #3 0x10c1af5b0 in llvm::InnerLoopVectorizer::getBroadcastInstrs(llvm::Value*) LoopVectorize.cpp:1999
    #4 0x10c1b56d1 in llvm::VPTransformState::get(llvm::VPValue*, unsigned int) LoopVectorize.cpp:9121
    #5 0x10c1cb271 in llvm::InnerLoopVectorizer::fixNonInductionPHIs(llvm::VPTransformState&) LoopVectorize.cpp:4362
    #6 0x10c1c9b60 in llvm::InnerLoopVectorizer::fixVectorizedLoop(llvm::VPTransformState&) LoopVectorize.cpp:3806
    #7 0x10c1ffed8 in llvm::LoopVectorizationPlanner::executePlan(llvm::InnerLoopVectorizer&, llvm::DominatorTree*) LoopVectorize.cpp:7624
    #8 0x10c218509 in llvm::LoopVectorizePass::processLoop(llvm::Loop*) LoopVectorize.cpp:9342
    #9 0x10c21f25f in llvm::LoopVectorizePass::runImpl(llvm::Function&, llvm::ScalarEvolution&, llvm::LoopInfo&, llvm::TargetTransformInfo&, llvm::DominatorTree&, llvm::BlockFrequencyInfo&, llvm::TargetLibraryInfo*, llvm::DemandedBits&, llvm::AAResults&, llvm::AssumptionCache&, std::__1::function<llvm::LoopAccessInfo const& (llvm::Loop&)>&, llvm::OptimizationRemarkEmitter&, llvm::ProfileSummaryInfo*) LoopVectorize.cpp:9671
    #10 0x10c2200c7 in llvm::LoopVectorizePass::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) LoopVectorize.cpp:9705
    #11 0x10c526ddd in llvm::detail::PassModel<llvm::Function, llvm::LoopVectorizePass, llvm::PreservedAnalyses, llvm::AnalysisManager<llvm::Function> >::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) PassManagerInternal.h:85
    #12 0x10a92e213 in llvm::PassManager<llvm::Function, llvm::AnalysisManager<llvm::Function> >::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) PassManager.h:517
    #13 0x10722004d in llvm::detail::PassModel<llvm::Function, llvm::PassManager<llvm::Function, llvm::AnalysisManager<llvm::Function> >, llvm::PreservedAnalyses, llvm::AnalysisManager<llvm::Function> >::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) PassManagerInternal.h:85
    #14 0x10a93b468 in llvm::ModuleToFunctionPassAdaptor::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) PassManager.cpp:117
    #15 0x10676732d in llvm::detail::PassModel<llvm::Module, llvm::ModuleToFunctionPassAdaptor, llvm::PreservedAnalyses, llvm::AnalysisManager<llvm::Module> >::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) PassManagerInternal.h:85
    #16 0x10a92af6f in llvm::PassManager<llvm::Module, llvm::AnalysisManager<llvm::Module> >::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) PassManager.h:517
    #17 0x10673abb7 in llvm::runPassPipeline(llvm::StringRef, llvm::Module&, llvm::TargetMachine*, llvm::TargetLibraryInfoImpl*, llvm::ToolOutputFile*, llvm::ToolOutputFile*, llvm::ToolOutputFile*, llvm::StringRef, llvm::ArrayRef<llvm::StringRef>, llvm::opt_tool::OutputKind, llvm::opt_tool::VerifierKind, bool, bool, bool, bool, bool, bool) NewPMDriver.cpp:449
    #18 0x106784341 in main opt.cpp:813
    #19 0x7fff7114bcc8 in start+0x0 (libdyld.dylib:x86_64+0x1acc8)

0x60600002e070 is located 48 bytes inside of 64-byte region [0x60600002e040,0x60600002e080)
freed by thread T0 here:
    #0 0x118393c3d in wrap__ZdlPv+0x7d (libclang_rt.asan_osx_dynamic.dylib:x86_64+0x4fc3d)
    #1 0x10adb1ba9 in llvm::iplist_impl<llvm::simple_ilist<llvm::Instruction>, llvm::SymbolTableListTraits<llvm::Instruction> >::erase(llvm::ilist_iterator<llvm::ilist_detail::node_options<llvm::Instruction, false, false, void>, false, false>) ilist.h:268
    #2 0x10be7f95d in llvm::ReplaceInstWithValue(llvm::SymbolTableList<llvm::Instruction>&, llvm::ilist_iterator<llvm::ilist_detail::node_options<llvm::Instruction, false, false, void>, false, false>&, llvm::Value*) BasicBlockUtils.cpp:468
    #3 0x10be7fb7d in llvm::ReplaceInstWithInst(llvm::SymbolTableList<llvm::Instruction>&, llvm::ilist_iterator<llvm::ilist_detail::node_options<llvm::Instruction, false, false, void>, false, false>&, llvm::Instruction*) BasicBlockUtils.cpp:485
    #4 0x10be7fd5c in llvm::ReplaceInstWithInst(llvm::Instruction*, llvm::Instruction*) BasicBlockUtils.cpp:493
    #5 0x10c32bca4 in llvm::VPBasicBlock::execute(llvm::VPTransformState*) VPlan.cpp:319
    #6 0x10c32d5c6 in llvm::VPRegionBlock::execute(llvm::VPTransformState*) VPlan.cpp:363
    #7 0x10c3300e6 in llvm::VPlan::execute(llvm::VPTransformState*) VPlan.cpp:576
    #8 0x10c1ffec9 in llvm::LoopVectorizationPlanner::executePlan(llvm::InnerLoopVectorizer&, llvm::DominatorTree*) LoopVectorize.cpp:7620
    #9 0x10c218509 in llvm::LoopVectorizePass::processLoop(llvm::Loop*) LoopVectorize.cpp:9342
    #10 0x10c21f25f in llvm::LoopVectorizePass::runImpl(llvm::Function&, llvm::ScalarEvolution&, llvm::LoopInfo&, llvm::TargetTransformInfo&, llvm::DominatorTree&, llvm::BlockFrequencyInfo&, llvm::TargetLibraryInfo*, llvm::DemandedBits&, llvm::AAResults&, llvm::AssumptionCache&, std::__1::function<llvm::LoopAccessInfo const& (llvm::Loop&)>&, llvm::OptimizationRemarkEmitter&, llvm::ProfileSummaryInfo*) LoopVectorize.cpp:9671
    #11 0x10c2200c7 in llvm::LoopVectorizePass::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) LoopVectorize.cpp:9705
    #12 0x10c526ddd in llvm::detail::PassModel<llvm::Function, llvm::LoopVectorizePass, llvm::PreservedAnalyses, llvm::AnalysisManager<llvm::Function> >::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) PassManagerInternal.h:85
    #13 0x10a92e213 in llvm::PassManager<llvm::Function, llvm::AnalysisManager<llvm::Function> >::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) PassManager.h:517
    #14 0x10722004d in llvm::detail::PassModel<llvm::Function, llvm::PassManager<llvm::Function, llvm::AnalysisManager<llvm::Function> >, llvm::PreservedAnalyses, llvm::AnalysisManager<llvm::Function> >::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) PassManagerInternal.h:85
    #15 0x10a93b468 in llvm::ModuleToFunctionPassAdaptor::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) PassManager.cpp:117
    #16 0x10676732d in llvm::detail::PassModel<llvm::Module, llvm::ModuleToFunctionPassAdaptor, llvm::PreservedAnalyses, llvm::AnalysisManager<llvm::Module> >::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) PassManagerInternal.h:85
    #17 0x10a92af6f in llvm::PassManager<llvm::Module, llvm::AnalysisManager<llvm::Module> >::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) PassManager.h:517
    #18 0x10673abb7 in llvm::runPassPipeline(llvm::StringRef, llvm::Module&, llvm::TargetMachine*, llvm::TargetLibraryInfoImpl*, llvm::ToolOutputFile*, llvm::ToolOutputFile*, llvm::ToolOutputFile*, llvm::StringRef, llvm::ArrayRef<llvm::StringRef>, llvm::opt_tool::OutputKind, llvm::opt_tool::VerifierKind, bool, bool, bool, bool, bool, bool) NewPMDriver.cpp:449
    #19 0x106784341 in main opt.cpp:813
    #20 0x7fff7114bcc8 in start+0x0 (libdyld.dylib:x86_64+0x1acc8)

previously allocated by thread T0 here:
    #0 0x11839381d in wrap__Znwm+0x7d (libclang_rt.asan_osx_dynamic.dylib:x86_64+0x4f81d)
    #1 0x10a984e0f in llvm::User::operator new(unsigned long, unsigned int) User.cpp:146
    #2 0x10a678770 in llvm::IRBuilderBase::CreateUnreachable() IRBuilder.h:1114
    #3 0x10c32b8e7 in llvm::VPBasicBlock::execute(llvm::VPTransformState*) VPlan.cpp:281
    #4 0x10c32d5c6 in llvm::VPRegionBlock::execute(llvm::VPTransformState*) VPlan.cpp:363
    #5 0x10c3300e6 in llvm::VPlan::execute(llvm::VPTransformState*) VPlan.cpp:576
    #6 0x10c1ffec9 in llvm::LoopVectorizationPlanner::executePlan(llvm::InnerLoopVectorizer&, llvm::DominatorTree*) LoopVectorize.cpp:7620
    #7 0x10c218509 in llvm::LoopVectorizePass::processLoop(llvm::Loop*) LoopVectorize.cpp:9342
    #8 0x10c21f25f in llvm::LoopVectorizePass::runImpl(llvm::Function&, llvm::ScalarEvolution&, llvm::LoopInfo&, llvm::TargetTransformInfo&, llvm::DominatorTree&, llvm::BlockFrequencyInfo&, llvm::TargetLibraryInfo*, llvm::DemandedBits&, llvm::AAResults&, llvm::AssumptionCache&, std::__1::function<llvm::LoopAccessInfo const& (llvm::Loop&)>&, llvm::OptimizationRemarkEmitter&, llvm::ProfileSummaryInfo*) LoopVectorize.cpp:9671
    #9 0x10c2200c7 in llvm::LoopVectorizePass::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) LoopVectorize.cpp:9705
    #10 0x10c526ddd in llvm::detail::PassModel<llvm::Function, llvm::LoopVectorizePass, llvm::PreservedAnalyses, llvm::AnalysisManager<llvm::Function> >::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) PassManagerInternal.h:85
    #11 0x10a92e213 in llvm::PassManager<llvm::Function, llvm::AnalysisManager<llvm::Function> >::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) PassManager.h:517
    #12 0x10722004d in llvm::detail::PassModel<llvm::Function, llvm::PassManager<llvm::Function, llvm::AnalysisManager<llvm::Function> >, llvm::PreservedAnalyses, llvm::AnalysisManager<llvm::Function> >::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) PassManagerInternal.h:85
    #13 0x10a93b468 in llvm::ModuleToFunctionPassAdaptor::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) PassManager.cpp:117
    #14 0x10676732d in llvm::detail::PassModel<llvm::Module, llvm::ModuleToFunctionPassAdaptor, llvm::PreservedAnalyses, llvm::AnalysisManager<llvm::Module> >::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) PassManagerInternal.h:85
    #15 0x10a92af6f in llvm::PassManager<llvm::Module, llvm::AnalysisManager<llvm::Module> >::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) PassManager.h:517
    #16 0x10673abb7 in llvm::runPassPipeline(llvm::StringRef, llvm::Module&, llvm::TargetMachine*, llvm::TargetLibraryInfoImpl*, llvm::ToolOutputFile*, llvm::ToolOutputFile*, llvm::ToolOutputFile*, llvm::StringRef, llvm::ArrayRef<llvm::StringRef>, llvm::opt_tool::OutputKind, llvm::opt_tool::VerifierKind, bool, bool, bool, bool, bool, bool) NewPMDriver.cpp:449
    #17 0x106784341 in main opt.cpp:813
    #18 0x7fff7114bcc8 in start+0x0 (libdyld.dylib:x86_64+0x1acc8)

SUMMARY: AddressSanitizer: heap-use-after-free TrackingMDRef.h:33 in llvm::TrackingMDRef::TrackingMDRef(llvm::TrackingMDRef const&)
Shadow bytes around the buggy address:
  0x1c0c00005bb0: fa fa fa fa 00 00 00 00 00 00 01 fa fa fa fa fa
  0x1c0c00005bc0: 00 00 00 00 00 00 00 fa fa fa fa fa 00 00 00 00
  0x1c0c00005bd0: 00 00 02 fa fa fa fa fa 00 00 00 00 00 00 00 00
  0x1c0c00005be0: fa fa fa fa fd fd fd fd fd fd fd fd fa fa fa fa
  0x1c0c00005bf0: 00 00 00 00 00 fc fc fc fa fa fa fa 00 00 00 00
=>0x1c0c00005c00: 00 00 00 00 fa fa fa fa fd fd fd fd fd fd[fd]fd
  0x1c0c00005c10: fa fa fa fa fd fd fd fd fd fd fd fd fa fa fa fa
  0x1c0c00005c20: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x1c0c00005c30: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x1c0c00005c40: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x1c0c00005c50: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
  Addressable:           00
  Partially addressable: 01 02 03 04 05 06 07 
  Heap left redzone:       fa
  Freed heap region:       fd
  Stack left redzone:      f1
  Stack mid redzone:       f2
  Stack right redzone:     f3
  Stack after return:      f5
  Stack use after scope:   f8
  Global redzone:          f9
  Global init order:       f6
  Poisoned by user:        f7
  Container overflow:      fc
  Array cookie:            ac
  Intra object redzone:    bb
  ASan internal:           fe
  Left alloca redzone:     ca
  Right alloca redzone:    cb
  Shadow gap:              cc
==48006==ABORTING
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace.
Stack dump:
0.	Program arguments: /Users/buildslave/jenkins/workspace/clang-stage2-cmake-RgSan/clang-build/bin/opt -enable-vplan-native-path -loop-vectorize -S /Users/buildslave/jenkins/workspace/clang-stage2-cmake-RgSan/llvm-project/llvm/test/Transforms/LoopVectorize/outer-loop-vec-phi-predecessor-order.ll
FileCheck error: '<stdin>' is empty.
FileCheck command line:  /Users/buildslave/jenkins/workspace/clang-stage2-cmake-RgSan/clang-build/bin/FileCheck /Users/buildslave/jenkins/workspace/clang-stage2-cmake-RgSan/llvm-project/llvm/test/Transforms/LoopVectorize/outer-loop-vec-phi-predecessor-order.ll

--