aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-objdump/llvm-objdump.cpp
diff options
context:
space:
mode:
authorweiguozhi <57237827+weiguozhi@users.noreply.github.com>2025-05-15 09:27:25 -0700
committerGitHub <noreply@github.com>2025-05-15 09:27:25 -0700
commit59c6d70ed8120b8864e5f796e2bf3de5518a0ef0 (patch)
treec4a40538efab0618f14c7c348fd5200a7f4634b8 /llvm/tools/llvm-objdump/llvm-objdump.cpp
parent0eb4bd27d1ab15ea6b078ac386be01ae13d261a9 (diff)
downloadllvm-59c6d70ed8120b8864e5f796e2bf3de5518a0ef0.zip
llvm-59c6d70ed8120b8864e5f796e2bf3de5518a0ef0.tar.gz
llvm-59c6d70ed8120b8864e5f796e2bf3de5518a0ef0.tar.bz2
[CodeGenPrepare] Make sure instruction get from SunkAddrs is before MemoryInst (#139303)
Function optimizeBlock may do optimizations on a block for multiple times. In the first iteration of the loop, MemoryInst1 may generate a sunk instruction and store it into SunkAddrs. In the second iteration of the loop, MemoryInst2 may use the same address and then it can reuse the sunk instruction stored in SunkAddrs, but MemoryInst2 may be before MemoryInst1 and the corresponding sunk instruction. In order to avoid use before def error, we need to find appropriate insert position for the sunk instruction. Fixes #138208.
Diffstat (limited to 'llvm/tools/llvm-objdump/llvm-objdump.cpp')
0 files changed, 0 insertions, 0 deletions