diff options
author | Hans Wennborg <hans@hanshq.net> | 2014-03-05 02:43:26 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2014-03-05 02:43:26 +0000 |
commit | acb842d5239afadd934ad2aef56b793d36436b19 (patch) | |
tree | 93f0afb2b539e8d39bdbfd7c1730ff4506405408 /llvm/lib/MC/MCDisassembler/Disassembler.cpp | |
parent | 9a16d088f68c50510893e4997ea38e3fbf308bce (diff) | |
download | llvm-acb842d5239afadd934ad2aef56b793d36436b19.zip llvm-acb842d5239afadd934ad2aef56b793d36436b19.tar.gz llvm-acb842d5239afadd934ad2aef56b793d36436b19.tar.bz2 |
Check for dynamic allocas and inline asm that clobbers sp before building
selection dag (PR19012)
In X86SelectionDagInfo::EmitTargetCodeForMemcpy we check with MachineFrameInfo
to make sure that ESI isn't used as a base pointer register before we choose to
emit rep movs (which clobbers esi).
The problem is that MachineFrameInfo wouldn't know about dynamic allocas or
inline asm that clobbers the stack pointer until SelectionDAGBuilder has
encountered them.
This patch fixes the problem by checking for such things when building the
FunctionLoweringInfo.
Differential Revision: http://llvm-reviews.chandlerc.com/D2954
llvm-svn: 202930
Diffstat (limited to 'llvm/lib/MC/MCDisassembler/Disassembler.cpp')
0 files changed, 0 insertions, 0 deletions