aboutsummaryrefslogtreecommitdiff
path: root/flang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorFlorian Hahn <flo@fhahn.com>2023-12-28 15:22:23 +0000
committerFlorian Hahn <flo@fhahn.com>2023-12-28 15:22:23 +0000
commit9b6127d76db7b77f8a2c16191860cb30fb8da4b1 (patch)
tree2c646bccdc7fbaedbd4d380e3d04a6a1aa5e2bd5 /flang/lib/Frontend/CompilerInvocation.cpp
parenta49cf6c14ad498244fee6026da59cfdcdad6b80c (diff)
downloadllvm-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