diff options
author | Florian Hahn <flo@fhahn.com> | 2023-12-20 16:56:15 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-20 16:56:15 +0100 |
commit | b1a5ee1febd8a903cec3dfdad61d57900dc3823e (patch) | |
tree | 1ab2debfab4c51512cfd33e3a55c5bc647ffdc60 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | d43fc5a6ad2f6092ac82b76590951235ec46f6e2 (diff) | |
download | llvm-b1a5ee1febd8a903cec3dfdad61d57900dc3823e.zip llvm-b1a5ee1febd8a903cec3dfdad61d57900dc3823e.tar.gz llvm-b1a5ee1febd8a903cec3dfdad61d57900dc3823e.tar.bz2 |
[ARM] Check all terms in emitPopInst when clearing Restored for LR. (#75527)
emitPopInst checks a single function exit MBB. If other paths also exit
the function and any of there terminators uses LR implicitly, it is not
save to clear the Restored bit.
Check all terminators for the function before clearing Restored.
This fixes a mis-compile in outlined-fn-may-clobber-lr-in-caller.ll
where the machine-outliner previously introduced BLs that clobbered LR
which in turn is used by the tail call return.
Alternative to #73553
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions