[llvm] [InstCombine] Transform high latency, dependent FSQRT/FDIV into FMUL (PR #87474)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 16 22:24:37 PST 2025


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `sanitizer-x86_64-linux-fast` running on `sanitizer-buildbot4` while building `llvm` at step 2 "annotate".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/169/builds/7477

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 2 (annotate) failure: 'python ../sanitizer_buildbot/sanitizers/zorg/buildbot/builders/sanitizers/buildbot_selector.py' (failure)
...
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using lld-link: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/lld-link
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld64.lld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using wasm-ld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld.lld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/ld.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using lld-link: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/lld-link
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld64.lld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using wasm-ld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/main.py:72: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 88353 tests, 88 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90..
FAIL: LLVM :: Transforms/InstCombine/fsqrtdiv-transform.ll (88339 of 88353)
******************** TEST 'LLVM :: Transforms/InstCombine/fsqrtdiv-transform.ll' FAILED ********************
Exit Code: 2

Command Output (stderr):
--
RUN: at line 2: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/opt -S -passes='instcombine<no-verify-fixpoint>' < /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/Transforms/InstCombine/fsqrtdiv-transform.ll | /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/FileCheck /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/Transforms/InstCombine/fsqrtdiv-transform.ll
+ /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/opt -S '-passes=instcombine<no-verify-fixpoint>'
+ /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/FileCheck /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/Transforms/InstCombine/fsqrtdiv-transform.ll
=================================================================
==3913007==ERROR: AddressSanitizer: heap-use-after-free on address 0x50d000004590 at pc 0x5e38f082ebf3 bp 0x7ffdee4bc390 sp 0x7ffdee4bc388
READ of size 1 at 0x50d000004590 thread T0
    #0 0x5e38f082ebf2 in getValueID /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/IR/Value.h:533:12
    #1 0x5e38f082ebf2 in doit /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/IR/Value.h:1007:16
    #2 0x5e38f082ebf2 in doit /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/Support/Casting.h:110:12
    #3 0x5e38f082ebf2 in doit /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/Support/Casting.h:137:12
    #4 0x5e38f082ebf2 in doit /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/Support/Casting.h:127:12
    #5 0x5e38f082ebf2 in isPossible /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/Support/Casting.h:255:12
    #6 0x5e38f082ebf2 in doCastIfPossible /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/Support/Casting.h:493:10
    #7 0x5e38f082ebf2 in dyn_cast<llvm::Instruction, const llvm::Value> /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/Support/Casting.h:663:10
    #8 0x5e38f082ebf2 in classof /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/IR/Operator.h:356:19
    #9 0x5e38f082ebf2 in doit /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/Support/Casting.h:64:53
    #10 0x5e38f082ebf2 in doit /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/Support/Casting.h:110:12
    #11 0x5e38f082ebf2 in llvm::isa_impl_wrap<llvm::FPMathOperator, llvm::Instruction const*, llvm::Instruction const*>::doit(llvm::Instruction const* const&) /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/Support/Casting.h:137:12
    #12 0x5e38f081f845 in doit /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/Support/Casting.h:127:12
    #13 0x5e38f081f845 in isPossible /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/Support/Casting.h:255:12
    #14 0x5e38f081f845 in isPossible /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/Support/Casting.h:509:12
    #15 0x5e38f081f845 in isa<llvm::FPMathOperator, const llvm::Instruction *> /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/Support/Casting.h:549:10
    #16 0x5e38f081f845 in llvm::Instruction::hasAllowReassoc() const /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/lib/IR/Instruction.cpp:603:3
    #17 0x5e38f29dcf13 in llvm::InstCombinerImpl::visitFDiv(llvm::BinaryOperator&) /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp:2126:9
    #18 0x5e38f2855cc1 in llvm::InstCombinerImpl::run() /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp:5234:31
    #19 0x5e38f285f672 in combineInstructionsOverFunction(llvm::Function&, llvm::InstructionWorklist&, llvm::AAResults*, llvm::AssumptionCache&, llvm::TargetLibraryInfo&, llvm::TargetTransformInfo&, llvm::DominatorTree&, llvm::OptimizationRemarkEmitter&, llvm::BlockFrequencyInfo*, llvm::BranchProbabilityInfo*, llvm::ProfileSummaryInfo*, llvm::InstCombineOptions const&) /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp:5551:37
    #20 0x5e38f285de12 in llvm::InstCombinePass::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp:5614:8
    #21 0x5e38f3dcd841 in llvm::detail::PassModel<llvm::Function, llvm::InstCombinePass, llvm::AnalysisManager<llvm::Function>>::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/IR/PassManagerInternal.h:90:17
    #22 0x5e38f0b45ea3 in llvm::PassManager<llvm::Function, llvm::AnalysisManager<llvm::Function>>::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/IR/PassManagerImpl.h:81:38
    #23 0x5e38f3de07f1 in llvm::detail::PassModel<llvm::Function, llvm::PassManager<llvm::Function, llvm::AnalysisManager<llvm::Function>>, llvm::AnalysisManager<llvm::Function>>::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/IR/PassManagerInternal.h:90:17
    #24 0x5e38f0b56b1f in llvm::ModuleToFunctionPassAdaptor::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/lib/IR/PassManager.cpp:124:38
    #25 0x5e38f3dcc4b1 in llvm::detail::PassModel<llvm::Module, llvm::ModuleToFunctionPassAdaptor, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/IR/PassManagerInternal.h:90:17
    #26 0x5e38f0b4355a in llvm::PassManager<llvm::Module, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/IR/PassManagerImpl.h:81:38
Step 10 (stage2/asan_ubsan check) failure: stage2/asan_ubsan check (failure)
...
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using lld-link: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/lld-link
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld64.lld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using wasm-ld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld.lld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/ld.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using lld-link: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/lld-link
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld64.lld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using wasm-ld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/main.py:72: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 88353 tests, 88 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90..
FAIL: LLVM :: Transforms/InstCombine/fsqrtdiv-transform.ll (88339 of 88353)
******************** TEST 'LLVM :: Transforms/InstCombine/fsqrtdiv-transform.ll' FAILED ********************
Exit Code: 2

Command Output (stderr):
--
RUN: at line 2: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/opt -S -passes='instcombine<no-verify-fixpoint>' < /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/Transforms/InstCombine/fsqrtdiv-transform.ll | /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/FileCheck /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/Transforms/InstCombine/fsqrtdiv-transform.ll
+ /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/opt -S '-passes=instcombine<no-verify-fixpoint>'
+ /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/FileCheck /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/Transforms/InstCombine/fsqrtdiv-transform.ll
=================================================================
==3913007==ERROR: AddressSanitizer: heap-use-after-free on address 0x50d000004590 at pc 0x5e38f082ebf3 bp 0x7ffdee4bc390 sp 0x7ffdee4bc388
READ of size 1 at 0x50d000004590 thread T0
    #0 0x5e38f082ebf2 in getValueID /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/IR/Value.h:533:12
    #1 0x5e38f082ebf2 in doit /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/IR/Value.h:1007:16
    #2 0x5e38f082ebf2 in doit /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/Support/Casting.h:110:12
    #3 0x5e38f082ebf2 in doit /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/Support/Casting.h:137:12
    #4 0x5e38f082ebf2 in doit /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/Support/Casting.h:127:12
    #5 0x5e38f082ebf2 in isPossible /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/Support/Casting.h:255:12
    #6 0x5e38f082ebf2 in doCastIfPossible /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/Support/Casting.h:493:10
    #7 0x5e38f082ebf2 in dyn_cast<llvm::Instruction, const llvm::Value> /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/Support/Casting.h:663:10
    #8 0x5e38f082ebf2 in classof /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/IR/Operator.h:356:19
    #9 0x5e38f082ebf2 in doit /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/Support/Casting.h:64:53
    #10 0x5e38f082ebf2 in doit /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/Support/Casting.h:110:12
    #11 0x5e38f082ebf2 in llvm::isa_impl_wrap<llvm::FPMathOperator, llvm::Instruction const*, llvm::Instruction const*>::doit(llvm::Instruction const* const&) /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/Support/Casting.h:137:12
    #12 0x5e38f081f845 in doit /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/Support/Casting.h:127:12
    #13 0x5e38f081f845 in isPossible /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/Support/Casting.h:255:12
    #14 0x5e38f081f845 in isPossible /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/Support/Casting.h:509:12
    #15 0x5e38f081f845 in isa<llvm::FPMathOperator, const llvm::Instruction *> /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/Support/Casting.h:549:10
    #16 0x5e38f081f845 in llvm::Instruction::hasAllowReassoc() const /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/lib/IR/Instruction.cpp:603:3
    #17 0x5e38f29dcf13 in llvm::InstCombinerImpl::visitFDiv(llvm::BinaryOperator&) /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp:2126:9
    #18 0x5e38f2855cc1 in llvm::InstCombinerImpl::run() /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp:5234:31
    #19 0x5e38f285f672 in combineInstructionsOverFunction(llvm::Function&, llvm::InstructionWorklist&, llvm::AAResults*, llvm::AssumptionCache&, llvm::TargetLibraryInfo&, llvm::TargetTransformInfo&, llvm::DominatorTree&, llvm::OptimizationRemarkEmitter&, llvm::BlockFrequencyInfo*, llvm::BranchProbabilityInfo*, llvm::ProfileSummaryInfo*, llvm::InstCombineOptions const&) /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp:5551:37
    #20 0x5e38f285de12 in llvm::InstCombinePass::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp:5614:8
    #21 0x5e38f3dcd841 in llvm::detail::PassModel<llvm::Function, llvm::InstCombinePass, llvm::AnalysisManager<llvm::Function>>::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/IR/PassManagerInternal.h:90:17
    #22 0x5e38f0b45ea3 in llvm::PassManager<llvm::Function, llvm::AnalysisManager<llvm::Function>>::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/IR/PassManagerImpl.h:81:38
    #23 0x5e38f3de07f1 in llvm::detail::PassModel<llvm::Function, llvm::PassManager<llvm::Function, llvm::AnalysisManager<llvm::Function>>, llvm::AnalysisManager<llvm::Function>>::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/IR/PassManagerInternal.h:90:17
    #24 0x5e38f0b56b1f in llvm::ModuleToFunctionPassAdaptor::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/lib/IR/PassManager.cpp:124:38
    #25 0x5e38f3dcc4b1 in llvm::detail::PassModel<llvm::Module, llvm::ModuleToFunctionPassAdaptor, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/IR/PassManagerInternal.h:90:17
    #26 0x5e38f0b4355a in llvm::PassManager<llvm::Module, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/IR/PassManagerImpl.h:81:38
Step 13 (stage2/msan check) failure: stage2/msan check (failure)
...
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using lld-link: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/lld-link
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld64.lld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using wasm-ld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld.lld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/ld.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using lld-link: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/lld-link
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld64.lld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using wasm-ld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/main.py:72: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 88351 tests, 88 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90..
FAIL: LLVM :: Transforms/InstCombine/fsqrtdiv-transform.ll (88336 of 88351)
******************** TEST 'LLVM :: Transforms/InstCombine/fsqrtdiv-transform.ll' FAILED ********************
Exit Code: 2

Command Output (stderr):
--
RUN: at line 2: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/opt -S -passes='instcombine<no-verify-fixpoint>' < /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/Transforms/InstCombine/fsqrtdiv-transform.ll | /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/FileCheck /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/Transforms/InstCombine/fsqrtdiv-transform.ll
+ /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/opt -S '-passes=instcombine<no-verify-fixpoint>'
+ /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/FileCheck /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/Transforms/InstCombine/fsqrtdiv-transform.ll
==2272284==WARNING: MemorySanitizer: use-of-uninitialized-value
    #0 0x5f70dd18b108 in llvm::isa_impl_cl<llvm::Instruction, llvm::Value const*>::doit(llvm::Value const*) /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/Support/Casting.h:110:5
    #1 0x5f70dd18b059 in isPossible /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/Support/Casting.h:255:12
    #2 0x5f70dd18b059 in llvm::CastInfo<llvm::Instruction, llvm::Value const*, void>::doCastIfPossible(llvm::Value const* const&) /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/Support/Casting.h:493:10
    #3 0x5f70dd168e21 in decltype(auto) llvm::dyn_cast<llvm::Instruction, llvm::Value const>(llvm::Value const*) /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/Support/Casting.h:663:10
    #4 0x5f70dd18d411 in llvm::FPMathOperator::classof(llvm::Value const*) /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/IR/Operator.h:356:19
    #5 0x5f70dd2e3123 in doit /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/Support/Casting.h:137:12
    #6 0x5f70dd2e3123 in doit /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/Support/Casting.h:127:12
    #7 0x5f70dd2e3123 in isPossible /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/Support/Casting.h:255:12
    #8 0x5f70dd2e3123 in isPossible /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/Support/Casting.h:509:12
    #9 0x5f70dd2e3123 in isa<llvm::FPMathOperator, const llvm::Instruction *> /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/Support/Casting.h:549:10
    #10 0x5f70dd2e3123 in llvm::Instruction::hasAllowReassoc() const /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/lib/IR/Instruction.cpp:603:3
    #11 0x5f70ddd7f569 in llvm::InstCombinerImpl::visitFDiv(llvm::BinaryOperator&) /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp:2126:9
    #12 0x5f70ddca8df6 in llvm::InstCombinerImpl::run() /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp:5234:31
    #13 0x5f70ddcab99d in combineInstructionsOverFunction(llvm::Function&, llvm::InstructionWorklist&, llvm::AAResults*, llvm::AssumptionCache&, llvm::TargetLibraryInfo&, llvm::TargetTransformInfo&, llvm::DominatorTree&, llvm::OptimizationRemarkEmitter&, llvm::BlockFrequencyInfo*, llvm::BranchProbabilityInfo*, llvm::ProfileSummaryInfo*, llvm::InstCombineOptions const&) /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp:5551:37
    #14 0x5f70ddcab3bd in llvm::InstCombinePass::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp:5614:8
    #15 0x5f70de779517 in llvm::detail::PassModel<llvm::Function, llvm::InstCombinePass, llvm::AnalysisManager<llvm::Function>>::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/IR/PassManagerInternal.h:90:17
    #16 0x5f70dd3af599 in llvm::PassManager<llvm::Function, llvm::AnalysisManager<llvm::Function>>::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/IR/PassManagerImpl.h:81:38
    #17 0x5f70de785025 in llvm::detail::PassModel<llvm::Function, llvm::PassManager<llvm::Function, llvm::AnalysisManager<llvm::Function>>, llvm::AnalysisManager<llvm::Function>>::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/IR/PassManagerInternal.h:90:17
    #18 0x5f70dd3b6f6a in llvm::ModuleToFunctionPassAdaptor::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/lib/IR/PassManager.cpp:124:38
    #19 0x5f70de7788df in llvm::detail::PassModel<llvm::Module, llvm::ModuleToFunctionPassAdaptor, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/IR/PassManagerInternal.h:90:17
    #20 0x5f70dd3ae243 in llvm::PassManager<llvm::Module, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/IR/PassManagerImpl.h:81:38
    #21 0x5f70de70212e in llvm::runPassPipeline(llvm::StringRef, llvm::Module&, llvm::TargetMachine*, llvm::TargetLibraryInfoImpl*, llvm::ToolOutputFile*, llvm::ToolOutputFile*, llvm::ToolOutputFile*, llvm::StringRef, llvm::ArrayRef<llvm::PassPlugin>, llvm::ArrayRef<std::__1::function<void (llvm::PassBuilder&)>>, llvm::opt_tool::OutputKind, llvm::opt_tool::VerifierKind, bool, bool, bool, bool, bool, bool, bool) /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/tools/opt/NewPMDriver.cpp:541:7
    #22 0x5f70dd04b508 in optMain /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/tools/opt/optdriver.cpp:739:12
    #23 0x798b7242a3b7  (/lib/x86_64-linux-gnu/libc.so.6+0x2a3b7) (BuildId: 5f3f024b472f38389da3a2f567b3d0eaa8835ca2)
    #24 0x798b7242a47a in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a47a) (BuildId: 5f3f024b472f38389da3a2f567b3d0eaa8835ca2)
    #25 0x5f70dcfac8a4 in _start (/home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/opt+0x4a0b8a4)

SUMMARY: MemorySanitizer: use-of-uninitialized-value /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/Support/Casting.h:110:5 in llvm::isa_impl_cl<llvm::Instruction, llvm::Value const*>::doit(llvm::Value const*)
Exiting

```

</details>

https://github.com/llvm/llvm-project/pull/87474


More information about the llvm-commits mailing list