[all-commits] [llvm/llvm-project] 25da8e: Reapply "[LICM] Fold associative binary ops to pro...

Ricardo Jesus via All-commits all-commits at lists.llvm.org
Fri Jul 26 02:12:46 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 25da8e5a9798a1c25526e4dc8db571fc25cca187
      https://github.com/llvm/llvm-project/commit/25da8e5a9798a1c25526e4dc8db571fc25cca187
  Author: Ricardo Jesus <rjj at nvidia.com>
  Date:   2024-07-26 (Fri, 26 Jul 2024)

  Changed paths:
    M llvm/lib/Transforms/Scalar/LICM.cpp
    M llvm/test/CodeGen/PowerPC/common-chain.ll
    A llvm/test/Transforms/LICM/hoist-binop.ll
    M llvm/test/Transforms/LICM/sink-foldable.ll

  Log Message:
  -----------
  Reapply "[LICM] Fold associative binary ops to promote code hoisting (#81608)" (#100377)

This reapplies a more strict version of
https://github.com/llvm/llvm-project/commit/f2ccf80136a01ca69f766becafb329db6c54c0c8.

Perform the transformation

  "(LV op C1) op C2" ==> "LV op (C1 op C2)"

where op is an associative binary op, LV is a loop variant, and C1 and
C2 are loop invariants, and hoist (C1 op C2) into the preheader.

For now this fold is restricted to ADDs.



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