diff options
author | Jeffrey Byrnes <jeffrey.byrnes@amd.com> | 2025-09-19 14:18:21 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-09-19 14:18:21 -0700 |
commit | d8a4c61fe4c11b16a496a089e2962473c6b1b183 (patch) | |
tree | 73b05ed468eaf20d2dc8b31c56483fac0851ea29 /llvm/lib/Object/ELFObjectFile.cpp | |
parent | d38979dca24a20b94a682aef5dfbd9e290335ea9 (diff) | |
download | llvm-d8a4c61fe4c11b16a496a089e2962473c6b1b183.zip llvm-d8a4c61fe4c11b16a496a089e2962473c6b1b183.tar.gz llvm-d8a4c61fe4c11b16a496a089e2962473c6b1b183.tar.bz2 |
[CodeGenPrepare] Consider target memory intrinics as memory use (#159638)
When deciding to sink address instructions into their uses, we check if
it is profitable to do so. The profitability check is based on the types
of uses of this address instruction -- if there are users which are not
memory instructions, then do not fold.
However, this profitability check wasn't considering target intrinsics,
which may be loads / stores.
This adds some logic to handle target memory intrinsics.
Diffstat (limited to 'llvm/lib/Object/ELFObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions