[all-commits] [llvm/llvm-project] 5344d8: [CodeGenPrepare] Estimate liveness of loop invaria...
Momchil Velikov via All-commits
all-commits at lists.llvm.org
Mon Apr 24 02:26:10 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 5344d8e10bb7d8672d4bfae8adb010465470d51b
https://github.com/llvm/llvm-project/commit/5344d8e10bb7d8672d4bfae8adb010465470d51b
Author: Momchil Velikov <momchil.velikov at arm.com>
Date: 2023-04-24 (Mon, 24 Apr 2023)
Changed paths:
M llvm/lib/CodeGen/CodeGenPrepare.cpp
A llvm/test/CodeGen/AArch64/gep-sink-loop-inv-live.ll
Log Message:
-----------
[CodeGenPrepare] Estimate liveness of loop invariants when checking for address folding profitability
When checking the profitability of folding an address computation
into a memory instruction, the compiler tries to determine the liveness
of the values, comprising the address, at the point of the memory instruction.
This patch improves on the live variable estimates by including
the loop invariants which are references in the loop body.
Reviewed By: dmgreen
Differential Revision: https://reviews.llvm.org/D143897
More information about the All-commits
mailing list