Commit Graph

6 Commits

Author SHA1 Message Date
Kirill Stoimenov d6e1e0a019 [ASan] Use stack safety analysis to optimize allocas instrumentation.
Added alloca optimization which was missed during the implemenation of D112098.

Reviewed By: vitalybuka

Differential Revision: https://reviews.llvm.org/D130503
2022-07-26 18:48:16 -07:00
Vitaly Buka 704a6ea507 [asan][test] Check for __asan_stack_malloc 2022-07-26 18:28:14 -07:00
Vitaly Buka c99b9cf45a [asan][test] Cleanup asan-stack-safety.ll test 2022-07-26 17:18:00 -07:00
Fangrui Song 01252b4815 [asan][test] Remove legacy PM style opt -foo tests 2022-04-15 20:00:56 -07:00
Kirill Stoimenov a5dd6c7419 [ASan] Fixed null pointer bug introduced in D112098.
Also added some more test to cover the "else if" part.

Reviewed By: RKSimon

Differential Revision: https://reviews.llvm.org/D118645
2022-01-31 21:50:10 +00:00
Kirill Stoimenov 3f1aca58df [ASan] Added stack safety support in address sanitizer.
Added and implemented -asan-use-stack-safety flag, which control if ASan would use the Stack Safety results to emit less code for operations which are marked as 'safe' by the static analysis.

Reviewed By: vitalybuka

Differential Revision: https://reviews.llvm.org/D112098
2021-11-04 17:22:31 -07:00