[all-commits] [llvm/llvm-project] b373b5: Enabling the copy-constant-to-alloca optimization ...
Andy Kaylor via All-commits
all-commits at lists.llvm.org
Tue Jul 27 10:23:29 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b373b5990d5991a920c421b21a352e4ccf4c4993
https://github.com/llvm/llvm-project/commit/b373b5990d5991a920c421b21a352e4ccf4c4993
Author: Andy Kaylor <andrew.kaylor at intel.com>
Date: 2021-07-27 (Tue, 27 Jul 2021)
Changed paths:
M llvm/lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp
M llvm/test/Transforms/InstCombine/memcpy-from-global.ll
Log Message:
-----------
Enabling the copy-constant-to-alloca optimization in more instances
Patch by Mohammad Fawaz
This patch allows lifetime calls to be ignored (and later erased) if we
know that the copy-constant-to-alloca optimization is going to happen.
The case that is missed is when the global variable is in a different address
space than the alloca (as shown in the example added to the lit test.)
This used to work before https://github.com/llvm/llvm-project/commit/6da31fa4a61d68af21dfa1e144e726ed6d77903e
Differential Revision: https://reviews.llvm.org/D106573
More information about the All-commits
mailing list