llvm-project/llvm/test/Transforms/GuardWidening
Serguei Katkov e30d5bfeba [GuardWidening] Add tests showing incorrect behavior of GW.
The first test shows that combineRangeChecks may choose to keep only two poison conditions.
And we cannot do simple arithmetic or logical and in guard.
The second test shows that keeping two poison conditions in the widened guard may allow
execution of side-effect instruction even if just freeze these conditions.
The third test shows that even in simple test we can hoist a poison and even logical and does not help here.

Reviewed By: mkazantsev
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D128779
2022-06-29 13:41:59 +07:00
..
basic-loop.ll [GuardWidening] Update all tests with update_test_checks.py 2022-06-24 12:04:50 +07:00
basic.ll [GuardWidening] Update all tests with update_test_checks.py 2022-06-24 12:04:50 +07:00
basic_widenable_condition_guards.ll [GuardWidening] Update all tests with update_test_checks.py 2022-06-24 12:04:50 +07:00
loop-schedule.ll [GuardWidening] Update all tests with update_test_checks.py 2022-06-24 12:04:50 +07:00
mixed_guards.ll [GuardWidening] Update all tests with update_test_checks.py 2022-06-24 12:04:50 +07:00
posion.ll [GuardWidening] Add tests showing incorrect behavior of GW. 2022-06-29 13:41:59 +07:00
range-check-merging.ll [GuardWidening] Remove nuw/nsw flags for hoisted instructions 2022-05-26 13:20:55 +07:00