Skip to content

Instantly share code, notes, and snippets.

@weliveindetail
Created May 17, 2023 12:48
Show Gist options
  • Save weliveindetail/dd3fde7a952a25c8fa0ee7331c7a507e to your computer and use it in GitHub Desktop.
Save weliveindetail/dd3fde7a952a25c8fa0ee7331c7a507e to your computer and use it in GitHub Desktop.
git-bisect-llvm-project

Run git bisect:

> git bisect start
> git bisect good 72a72315b052180a7df90a26000fdca4ef09dd94
> git bisect bad f2bb57c19455e77fd71be782f9ee9092f31bd2a9
> git bisect run /tmp/check-kaleidoscope-ch4.sh
...

ready> ready> Evaluated to 5.000000
ready> ready> + exit_code=0
+ [[ 0 -ne 0 ]]
Bisecting: 124 revisions left to test after this (roughly 7 steps)
[61d5671c1697e3ee622384d07d7a33f990fa6643] Revert "[libc++][PSTL] Implement std::copy{,_n}"

ready> ready> Evaluated to 5.000000
ready> ready> pure virtual method called
terminate called without an active exception
/tmp/check-kaleidoscope-ch4.sh: line 5: 665571 Aborted                 (core dumped) /home/ez/Develop/llvm-project/build-release-gcc12/bin/Kaleidoscope-Ch4 < /home/ez/Develop/llvm-project/llvm/test/Examples/Kaleidoscope/Chapter4.test
+ exit_code=134
+ [[ 134 -ne 0 ]]
+ exit 1
Bisecting: 62 revisions left to test after this (roughly 6 steps)
[622281a7b35946aed45851971de9d0eb0b265f2e] [flang] add hlfir.any intrinsic

ready> ready> Evaluated to 5.000000
ready> ready> pure virtual method called
terminate called without an active exception
/tmp/check-kaleidoscope-ch4.sh: line 5: 669825 Aborted                 (core dumped) /home/ez/Develop/llvm-project/build-release-gcc12/bin/Kaleidoscope-Ch4 < /home/ez/Develop/llvm-project/llvm/test/Examples/Kaleidoscope/Chapter4.test
+ exit_code=134
+ [[ 134 -ne 0 ]]
+ exit 1
Bisecting: 30 revisions left to test after this (roughly 5 steps)
[cf59d67c6407bc27693a08e18ad9b8254a38ec2d] [X86] Fix the bug of pr62625

ready> ready> Evaluated to 5.000000
ready> ready> + exit_code=0
+ [[ 0 -ne 0 ]]
Bisecting: 15 revisions left to test after this (roughly 4 steps)
[bf76a6e44723b73940ca81c3b17077225b3c4118] [lldb] Cleanup OptionValue header and implenentation (NFC)

ready> ready> Evaluated to 5.000000
ready> ready> + exit_code=0
+ [[ 0 -ne 0 ]]
Bisecting: 7 revisions left to test after this (roughly 3 steps)
[52a2d07bb3bb42594aab957b0da2e1e911abab59] [AMDGPU] Improve PHI-breaking heuristics in CGP

ready> ready> Evaluated to 5.000000
ready> ready> pure virtual method called
terminate called without an active exception
/tmp/check-kaleidoscope-ch4.sh: line 5: 717507 Aborted                 (core dumped) /home/ez/Develop/llvm-project/build-release-gcc12/bin/Kaleidoscope-Ch4 < /home/ez/Develop/llvm-project/llvm/test/Examples/Kaleidoscope/Chapter4.test
+ exit_code=134
+ [[ 134 -ne 0 ]]
+ exit 1
Bisecting: 3 revisions left to test after this (roughly 2 steps)
[f2a05c64e3880278c8b3afa5a78a93eb26d244e5] [RISCV] Add RISCVISD nodes for VWFMADD_VL.

ready> ready> Evaluated to 5.000000
ready> ready> pure virtual method called
terminate called without an active exception
/tmp/check-kaleidoscope-ch4.sh: line 5: 717572 Aborted                 (core dumped) /home/ez/Develop/llvm-project/build-release-gcc12/bin/Kaleidoscope-Ch4 < /home/ez/Develop/llvm-project/llvm/test/Examples/Kaleidoscope/Chapter4.test
+ exit_code=134
+ [[ 134 -ne 0 ]]
+ exit 1
Bisecting: 1 revision left to test after this (roughly 1 step)
[48bc71505e03694caac6afb2431ff1157a2382a8] [clang][dataflow] Eliminate `SkipPast::ReferenceThenPointer`.

ready> ready> Evaluated to 5.000000
ready> ready> pure virtual method called
terminate called without an active exception
/tmp/check-kaleidoscope-ch4.sh: line 5: 717626 Aborted                 (core dumped) /home/ez/Develop/llvm-project/build-release-gcc12/bin/Kaleidoscope-Ch4 < /home/ez/Develop/llvm-project/llvm/test/Examples/Kaleidoscope/Chapter4.test
+ exit_code=134
+ [[ 134 -ne 0 ]]
+ exit 1
Bisecting: 0 revisions left to test after this (roughly 0 steps)
[47f5c54f997a59bb2c65abe6b8b811f6e7553456] [cmake] Disable GCC lifetime DSE

ready> ready> Evaluated to 5.000000
ready> ready> pure virtual method called
terminate called without an active exception
/tmp/check-kaleidoscope-ch4.sh: line 5: 717678 Aborted                 (core dumped) /home/ez/Develop/llvm-project/build-release-gcc12/bin/Kaleidoscope-Ch4 < /home/ez/Develop/llvm-project/llvm/test/Examples/Kaleidoscope/Chapter4.test
+ exit_code=134
+ [[ 134 -ne 0 ]]
+ exit 1
47f5c54f997a59bb2c65abe6b8b811f6e7553456 is the first bad commit
#!/bin/bash
set -x
ninja -C /home/ez/Develop/llvm-project/build-release-gcc12 Kaleidoscope-Ch4
/home/ez/Develop/llvm-project/build-release-gcc12/bin/Kaleidoscope-Ch4 < /home/ez/Develop/llvm-project/llvm/test/Examples/Kaleidoscope/Chapter4.test
exit_code=$?
if [[ $exit_code -ne 0 ]]; then
exit 1
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment