[all-commits] [llvm/llvm-project] fc1575: [LICM] Prevent fold and hoist of binary ops with o...
Ricardo Jesus via All-commits
all-commits at lists.llvm.org
Wed Aug 7 01:52:53 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: fc157522c5680b0ff982442bc8043c1e8c998161
https://github.com/llvm/llvm-project/commit/fc157522c5680b0ff982442bc8043c1e8c998161
Author: Ricardo Jesus <rjj at nvidia.com>
Date: 2024-08-07 (Wed, 07 Aug 2024)
Changed paths:
M llvm/lib/Transforms/Scalar/LICM.cpp
M llvm/test/CodeGen/PowerPC/common-chain.ll
M llvm/test/Transforms/LICM/hoist-binop.ll
Log Message:
-----------
[LICM] Prevent fold and hoist of binary ops with over 2 uses (#102114)
This limits folding and hoisting associative binary ops to cases where
the intermediate op has at most two uses.
The more uses the intermediate op has, the more new ops we have to
create to potentially reduce the loop's critical path. We keep the limit
to two uses to minimise undesirable increases in code size.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list