diff options
author | Florian Hahn <flo@fhahn.com> | 2023-12-28 15:22:23 +0000 |
---|---|---|
committer | Florian Hahn <flo@fhahn.com> | 2023-12-28 15:22:23 +0000 |
commit | 9b6127d76db7b77f8a2c16191860cb30fb8da4b1 (patch) | |
tree | 2c646bccdc7fbaedbd4d380e3d04a6a1aa5e2bd5 /flang/lib/Frontend/CompilerInvocation.cpp | |
parent | a49cf6c14ad498244fee6026da59cfdcdad6b80c (diff) | |
download | llvm-9b6127d76db7b77f8a2c16191860cb30fb8da4b1.zip llvm-9b6127d76db7b77f8a2c16191860cb30fb8da4b1.tar.gz llvm-9b6127d76db7b77f8a2c16191860cb30fb8da4b1.tar.bz2 |
[ConstraintSystem] Remove GCD handling (NFCI).
As @dtcxzyw pointed out in
https://github.com/llvm/llvm-project/pull/76299#pullrequestreview-1795471115
the current GCD handling is effectively a no-op, as NewGCD will always
by 1, as it is initially initialized as 1.
This patch removes the uses of GCD and its computation. This slightly
reduces compile-time [1], while not causing any binary changes (due to always
dividing by 1) in the large test-set I checked.
Division by GCD could be added in the future again and it in theory
should help reduce overflows by normalizing the coefficients (sketched
in cadbfdf8605e743e092217c54e2b837245a0a330), but this also doesn't seem
to have much (any) impact in practice.
[1] https://llvm-compile-time-tracker.com/compare.php?from=0de030e4dcb798228731ab25d4dd31df4dcaba2b&to=cadbfdf8605e743e092217c54e2b837245a0a330&stat=instructions:u
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions