aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcc-urlifier.cc
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@arm.com>2024-10-24 14:22:31 +0100
committerRichard Sandiford <richard.sandiford@arm.com>2024-10-24 14:22:31 +0100
commite2e798b86074010a8d5da16ce0b199fcec70a50e (patch)
treef949a8fb5ca94812d1dded54ebbe591011ee9eb6 /gcc/gcc-urlifier.cc
parent3e93828e601c62176ea2b4a1dd0b5a1db5657a8e (diff)
downloadgcc-e2e798b86074010a8d5da16ce0b199fcec70a50e.zip
gcc-e2e798b86074010a8d5da16ce0b199fcec70a50e.tar.gz
gcc-e2e798b86074010a8d5da16ce0b199fcec70a50e.tar.bz2
Use get_nonzero_bits to simplify trunc_div to exact_div
There are a limited number of existing rules that benefit from knowing that a division is exact. Later patches will add more. gcc/ * match.pd: Simplify X / (1 << C) to X /[ex] (1 << C) if the low C bits of X are clear gcc/testsuite/ * gcc.dg/tree-ssa/cmpexactdiv-6.c: New test.
Diffstat (limited to 'gcc/gcc-urlifier.cc')
0 files changed, 0 insertions, 0 deletions