diff options
| author | Florian Hahn <flo@fhahn.com> | 2022-01-27 13:31:23 +0000 |
|---|---|---|
| committer | Florian Hahn <flo@fhahn.com> | 2022-01-27 13:31:23 +0000 |
| commit | 258a0a3a551745e7250d7831e6b477e49708a08c (patch) | |
| tree | 474dc81fabdda40436ea5fa22d91eeaa9cce7519 /lldb/test/API/functionalities/scripted_process/TestScriptedProcess.py | |
| parent | 389ae775e44ea0c8cd42a3ae518e79b837af4990 (diff) | |
[ConstraintElimination] Use simplified constraint for == 0.
When checking x == 0, checking x u<= 0 is sufficient and simpler than
x u>= 0 && x u<= 0.
https://alive2.llvm.org/ce/z/btM7d3
----------------------------------------
define i1 @src(i4 %a) {
%0:
%c = icmp eq i4 %a, 0
ret i1 %c
}
=>
define i1 @tgt(i4 %a) {
%0:
%c = icmp ule i4 %a, 0
ret i1 %c
}
Transformation seems to be correct!
Diffstat (limited to 'lldb/test/API/functionalities/scripted_process/TestScriptedProcess.py')
0 files changed, 0 insertions, 0 deletions
