aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2022-04-16 17:17:41 -0400
committerMatt Arsenault <arsenm2@gmail.com>2022-04-26 13:17:13 -0400
commita27b9ab391d1e0749e37b7db93b0fae18e23ecf6 (patch)
tree4a1e327967cc86ee825ed16d8baa57bd51e63ef9 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parente1318078a4e160eb723bcbcfcdcc9a1b618f7067 (diff)
downloadllvm-a27b9ab391d1e0749e37b7db93b0fae18e23ecf6.zip
llvm-a27b9ab391d1e0749e37b7db93b0fae18e23ecf6.tar.gz
llvm-a27b9ab391d1e0749e37b7db93b0fae18e23ecf6.tar.bz2
llvm-reduce: Preserve frame index values when cloning function
Previously the specific values used for fixed frame indexes was in reverse order in the cloned function from the original, and a map was used to adjust all frame indexes to the potentially new values. Insert the fixed objects in reverse to avoid this. This simplifies other code, since now we don't need to track down all frame indexes. This will allow targets that store frame indexes in MachineFunctionInfo to simply copy the values. Note this isn't directly observable in the test since the resulting MIR print/parse can shuffle the IDs around (in particular the final serialization implicitly strips out dead objects).
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions