aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp
diff options
context:
space:
mode:
authorWarren Ristow <warren.ristow@sony.com>2022-07-14 08:21:04 -0700
committerWarren Ristow <warren.ristow@sony.com>2022-07-14 08:21:04 -0700
commit230c8c56f21cfe4e23a24793f3137add1af1d1f0 (patch)
tree29b2a88c27bb229af321512386c12274d91aa114 /llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp
parent486787210df5ce5eabadc90a7de353ae81101feb (diff)
downloadllvm-230c8c56f21cfe4e23a24793f3137add1af1d1f0.zip
llvm-230c8c56f21cfe4e23a24793f3137add1af1d1f0.tar.gz
llvm-230c8c56f21cfe4e23a24793f3137add1af1d1f0.tar.bz2
[Reassociate] Cleanup minor missed optimizations
In analyzing issue #56483, it was noticed that running `opt` with `-reassociate` was missing some minor optimizations. For example, there were cases where the running `opt` on IR with floating-point instructions that have the `fast` flags applied, sometimes resulted in less efficient code than the input IR (things like dead instructions left behind, and missed reassociations). These were sometimes noted in the test-files with TODOs, to investigate further. This commit fixes some of these problems, removing some TODOs in the process. FTR, I refer to these as "minor" missed optimizations, because when running a full clang/llvm compilation, these inefficiencies are not happening, as other passes clean that residue up. Regardless, having cleaner IR produced by `opt`, makes assessing the quality of fixes done in `opt` easier.
Diffstat (limited to 'llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp')
0 files changed, 0 insertions, 0 deletions