diff options
| author | Matthias Braun <matze@braunis.de> | 2017-04-24 18:15:00 +0000 | 
|---|---|---|
| committer | Matthias Braun <matze@braunis.de> | 2017-04-24 18:15:00 +0000 | 
| commit | f9796b76e988511093faad1b2c1b66405c0d00e4 (patch) | |
| tree | b90752c815eacc15d70beaf973be32d8d9805575 /llvm/lib/CodeGen/EarlyIfConversion.cpp | |
| parent | f2c7997013501010c72ec7d3d2d346ac1a0f875c (diff) | |
| download | bcm5719-llvm-f9796b76e988511093faad1b2c1b66405c0d00e4.tar.gz bcm5719-llvm-f9796b76e988511093faad1b2c1b66405c0d00e4.zip | |
X86RegisterInfo: eliminateFrameIndex: Avoid code duplication; NFC
Re-Commit of r300922 and r300923 with less aggressive assert (see
discussion at the end of https://reviews.llvm.org/D32205)
X86RegisterInfo::eliminateFrameIndex() and
X86FrameLowering::getFrameIndexReference() both had logic to compute the
base register. This consolidates the code.
Also use MachineInstr::isReturn instead of manually enumerating tail
call instructions (return instructions were not included in the previous
list because they never reference frame indexes).
Differential Revision: https://reviews.llvm.org/D32206
llvm-svn: 301211
Diffstat (limited to 'llvm/lib/CodeGen/EarlyIfConversion.cpp')
0 files changed, 0 insertions, 0 deletions

