aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorFlorian Hahn <flo@fhahn.com>2023-12-20 16:56:15 +0100
committerGitHub <noreply@github.com>2023-12-20 16:56:15 +0100
commitb1a5ee1febd8a903cec3dfdad61d57900dc3823e (patch)
tree1ab2debfab4c51512cfd33e3a55c5bc647ffdc60 /clang/lib/CodeGen/CodeGenModule.cpp
parentd43fc5a6ad2f6092ac82b76590951235ec46f6e2 (diff)
downloadllvm-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