aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodePlacementOpt.cpp
diff options
context:
space:
mode:
authorArnold Schwaighofer <arnold.schwaighofer@gmail.com>2010-02-22 16:18:09 +0000
committerArnold Schwaighofer <arnold.schwaighofer@gmail.com>2010-02-22 16:18:09 +0000
commit9265275a9a5d80ce7005d4f6af134efce52a66af (patch)
treef4299c0c70de8631393f3f5fa8fe970bb5e5fd1e /lib/CodeGen/CodePlacementOpt.cpp
parent3591b908432430f83963aa12e086092b27a85967 (diff)
Mark the return address stack slot as mutable when moving the return address
during a tail call. A parameter might overwrite this stack slot during the tail call. The sequence during a tail call is: 1.) load return address to temp reg 2.) move parameters (might involve storing to return address stack slot) 3.) store return address to new location from temp reg If the stack location is marked immutable CodeGen can colocate load (1) with the store (3). This fixes bug 6225. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96783 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodePlacementOpt.cpp')
0 files changed, 0 insertions, 0 deletions