Closed hstk30 closed 10 months ago
-mllvm -debugs
-mllvm -opt-bisect-limit=235
-mllvm
-print-before=<pass-name>
-print-after=<pass-name>
-print-after-all
-print-before-all
-disable-basic-aa
-aa-trace
git bisect
$ git bisect start $ git bisect bad $ git bisect good <goodcommit>
$ git bisect start $ git bisect good $ git bisect bad <badcommit>
Yes: $ git bisect bad No: $ git bisect good
$ git bisect bad
$ git bisect good
$ git bisect reset
-debug-only
-debug-pass=[Structure, Arguments]
-stop-before, -stop-after, -start-before, -start-after =[irtranslator, machine-scheduler, finalize-isel, legalizer, instruction-select, ...]
lto pgo 的调试
-mllvm -debugs
-mllvm -opt-bisect-limit=235
-mllvm
-print-before=<pass-name>
-print-after=<pass-name>
-print-after-all
-print-before-all
pass-name 在对应代码里找到,有时候是 DEBUG_TYPE,有时候是 XX_NAME-disable-basic-aa
-aa-trace
git bisect
确定修复的commitYes:
$ git bisect bad
No:$ git bisect good
-debug-only
-debug-pass=[Structure, Arguments]