aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Analysis/ValueTrackingTest.cpp
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2023-06-19 17:14:37 +0200
committerNikita Popov <npopov@redhat.com>2023-06-19 17:16:49 +0200
commit7cfc82f331182855e2634c21d242c3b418f84bd1 (patch)
treef23909fb68e7223341344405d582636af9401bb4 /llvm/unittests/Analysis/ValueTrackingTest.cpp
parentbb4f4a3efeae2bc0785edc19d2347f21729c816c (diff)
downloadllvm-7cfc82f331182855e2634c21d242c3b418f84bd1.zip
llvm-7cfc82f331182855e2634c21d242c3b418f84bd1.tar.gz
llvm-7cfc82f331182855e2634c21d242c3b418f84bd1.tar.bz2
[CVP] Use simpler urem expansion when LHS >= RHS (PR63330)
In this case we don't need to emit the comparison and select. This is papering over a weakness in CVP in that newly added instructions don't get revisited. If they were revisited, the icmp would be folded at that point. However, even without that it makes sense to handle this explicitly, because it avoids the need to insert freeze, which may prevent further analysis of the operation by LVI. Proofs: https://alive2.llvm.org/ce/z/quyBxp Fixes https://github.com/llvm/llvm-project/issues/63330.
Diffstat (limited to 'llvm/unittests/Analysis/ValueTrackingTest.cpp')
0 files changed, 0 insertions, 0 deletions