diff options
author | Nikita Popov <npopov@redhat.com> | 2024-08-02 09:55:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-02 09:55:02 +0200 |
commit | 85c5265feae82d8e26869adf4505b448b3a17534 (patch) | |
tree | f5dac718d71ce33e226338281b2e152b1f2cb07d /flang/lib/Frontend/CompilerInvocation.cpp | |
parent | 10df3207434e603be5f7e9b3036d821dd5623d3a (diff) | |
download | llvm-85c5265feae82d8e26869adf4505b448b3a17534.zip llvm-85c5265feae82d8e26869adf4505b448b3a17534.tar.gz llvm-85c5265feae82d8e26869adf4505b448b3a17534.tar.bz2 |
[SCEV] Unify and optimize constant folding (NFC) (#101473)
Add a common constantFoldAndGroupOps() helper that takes care of
constant folding and grouping transforms that are common to all nary
ops. This moves the constant folding prior to grouping, which is more
efficient, and excludes any constant from the sort.
The constant folding has hooks for folding, identity constants and
absorber constants.
This gives a compile-time improvement for SCEV-heavy workloads like
lencod.
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions