Failed

LLVM.Transforms/LoopVectorize.vplan-vectorize-inner-loop-reduction.ll (from LLVM)

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

Stacktrace

Script:
--
: 'RUN: at line 1';   /Users/buildslave/jenkins/workspace/clang-stage2-cmake-RgSan/clang-build/bin/opt -loop-vectorize -force-vector-width=4 -enable-vplan-native-path -S /Users/buildslave/jenkins/workspace/clang-stage2-cmake-RgSan/llvm-project/llvm/test/Transforms/LoopVectorize/vplan-vectorize-inner-loop-reduction.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/vplan-vectorize-inner-loop-reduction.ll
--
Exit Code: 2

Command Output (stderr):
--
+ : 'RUN: at line 1'
+ /Users/buildslave/jenkins/workspace/clang-stage2-cmake-RgSan/clang-build/bin/opt -loop-vectorize -force-vector-width=4 -enable-vplan-native-path -S /Users/buildslave/jenkins/workspace/clang-stage2-cmake-RgSan/llvm-project/llvm/test/Transforms/LoopVectorize/vplan-vectorize-inner-loop-reduction.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/vplan-vectorize-inner-loop-reduction.ll
=================================================================
==48297==ERROR: AddressSanitizer: heap-use-after-free on address 0x60600002e070 at pc 0x0001124d8b87 bp 0x7ffee2eff4a0 sp 0x7ffee2eff498
READ of size 8 at 0x60600002e070 thread T0
    #0 0x1124d8b86 in llvm::TrackingMDRef::TrackingMDRef(llvm::TrackingMDRef const&) TrackingMDRef.h:33
    #1 0x1117aab76 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 0x11203571a in llvm::IRBuilderBase::InsertPointGuard::~InsertPointGuard() IRBuilder.h:382
    #3 0x1127765b0 in llvm::InnerLoopVectorizer::getBroadcastInstrs(llvm::Value*) LoopVectorize.cpp:1999
    #4 0x11277c6d1 in llvm::VPTransformState::get(llvm::VPValue*, unsigned int) LoopVectorize.cpp:9121
    #5 0x112792271 in llvm::InnerLoopVectorizer::fixNonInductionPHIs(llvm::VPTransformState&) LoopVectorize.cpp:4362
    #6 0x112790b60 in llvm::InnerLoopVectorizer::fixVectorizedLoop(llvm::VPTransformState&) LoopVectorize.cpp:3806
    #7 0x1127c6ed8 in llvm::LoopVectorizationPlanner::executePlan(llvm::InnerLoopVectorizer&, llvm::DominatorTree*) LoopVectorize.cpp:7624
    #8 0x1127df509 in llvm::LoopVectorizePass::processLoop(llvm::Loop*) LoopVectorize.cpp:9342
    #9 0x1127e625f 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 0x1127e70c7 in llvm::LoopVectorizePass::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) LoopVectorize.cpp:9705
    #11 0x112aedddd 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 0x110ef5213 in llvm::PassManager<llvm::Function, llvm::AnalysisManager<llvm::Function> >::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) PassManager.h:517
    #13 0x10d7e704d 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 0x110f02468 in llvm::ModuleToFunctionPassAdaptor::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) PassManager.cpp:117
    #15 0x10cd2e32d 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 0x110ef1f6f in llvm::PassManager<llvm::Module, llvm::AnalysisManager<llvm::Module> >::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) PassManager.h:517
    #17 0x10cd01bb7 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 0x10cd4b341 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 0x11e95bc3d in wrap__ZdlPv+0x7d (libclang_rt.asan_osx_dynamic.dylib:x86_64+0x4fc3d)
    #1 0x111378ba9 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 0x11244695d 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 0x112446b7d 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 0x112446d5c in llvm::ReplaceInstWithInst(llvm::Instruction*, llvm::Instruction*) BasicBlockUtils.cpp:493
    #5 0x1128f2ca4 in llvm::VPBasicBlock::execute(llvm::VPTransformState*) VPlan.cpp:319
    #6 0x1128f45c6 in llvm::VPRegionBlock::execute(llvm::VPTransformState*) VPlan.cpp:363
    #7 0x1128f70e6 in llvm::VPlan::execute(llvm::VPTransformState*) VPlan.cpp:576
    #8 0x1127c6ec9 in llvm::LoopVectorizationPlanner::executePlan(llvm::InnerLoopVectorizer&, llvm::DominatorTree*) LoopVectorize.cpp:7620
    #9 0x1127df509 in llvm::LoopVectorizePass::processLoop(llvm::Loop*) LoopVectorize.cpp:9342
    #10 0x1127e625f 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 0x1127e70c7 in llvm::LoopVectorizePass::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) LoopVectorize.cpp:9705
    #12 0x112aedddd 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 0x110ef5213 in llvm::PassManager<llvm::Function, llvm::AnalysisManager<llvm::Function> >::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) PassManager.h:517
    #14 0x10d7e704d 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 0x110f02468 in llvm::ModuleToFunctionPassAdaptor::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) PassManager.cpp:117
    #16 0x10cd2e32d 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 0x110ef1f6f in llvm::PassManager<llvm::Module, llvm::AnalysisManager<llvm::Module> >::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) PassManager.h:517
    #18 0x10cd01bb7 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 0x10cd4b341 in main opt.cpp:813
    #20 0x7fff7114bcc8 in start+0x0 (libdyld.dylib:x86_64+0x1acc8)

previously allocated by thread T0 here:
    #0 0x11e95b81d in wrap__Znwm+0x7d (libclang_rt.asan_osx_dynamic.dylib:x86_64+0x4f81d)
    #1 0x110f4be0f in llvm::User::operator new(unsigned long, unsigned int) User.cpp:146
    #2 0x110c3f770 in llvm::IRBuilderBase::CreateUnreachable() IRBuilder.h:1114
    #3 0x1128f28e7 in llvm::VPBasicBlock::execute(llvm::VPTransformState*) VPlan.cpp:281
    #4 0x1128f45c6 in llvm::VPRegionBlock::execute(llvm::VPTransformState*) VPlan.cpp:363
    #5 0x1128f70e6 in llvm::VPlan::execute(llvm::VPTransformState*) VPlan.cpp:576
    #6 0x1127c6ec9 in llvm::LoopVectorizationPlanner::executePlan(llvm::InnerLoopVectorizer&, llvm::DominatorTree*) LoopVectorize.cpp:7620
    #7 0x1127df509 in llvm::LoopVectorizePass::processLoop(llvm::Loop*) LoopVectorize.cpp:9342
    #8 0x1127e625f 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 0x1127e70c7 in llvm::LoopVectorizePass::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) LoopVectorize.cpp:9705
    #10 0x112aedddd 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 0x110ef5213 in llvm::PassManager<llvm::Function, llvm::AnalysisManager<llvm::Function> >::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) PassManager.h:517
    #12 0x10d7e704d 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 0x110f02468 in llvm::ModuleToFunctionPassAdaptor::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) PassManager.cpp:117
    #14 0x10cd2e32d 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 0x110ef1f6f in llvm::PassManager<llvm::Module, llvm::AnalysisManager<llvm::Module> >::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) PassManager.h:517
    #16 0x10cd01bb7 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 0x10cd4b341 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 01 fa fa fa fa fa 00 00 00 00
  0x1c0c00005bd0: 00 00 01 fa fa fa fa fa 00 00 00 00 00 00 00 fa
  0x1c0c00005be0: fa fa fa fa 00 00 00 00 00 00 00 00 fa fa fa fa
  0x1c0c00005bf0: fd fd fd fd fd fd fd fd 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 00 00 00 00 00 00 02 fa fa fa fa fa
  0x1c0c00005c20: 00 00 00 00 00 00 01 fa fa fa fa fa fd fd fd fd
  0x1c0c00005c30: fd fd fd fd 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
==48297==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 -loop-vectorize -force-vector-width=4 -enable-vplan-native-path -S /Users/buildslave/jenkins/workspace/clang-stage2-cmake-RgSan/llvm-project/llvm/test/Transforms/LoopVectorize/vplan-vectorize-inner-loop-reduction.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/vplan-vectorize-inner-loop-reduction.ll

--