summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/LivePhysRegs.cpp
diff options
context:
space:
mode:
authorAmara Emerson <aemerson@apple.com>2019-09-20 23:52:07 +0000
committerAmara Emerson <aemerson@apple.com>2019-09-20 23:52:07 +0000
commit7ac1039957f9aebcdf3ccf36cdd11067eb42b832 (patch)
tree705c58a774d6a4d1c66e7d478b97263ea505ffe6 /llvm/lib/CodeGen/LivePhysRegs.cpp
parent7d6a95cf83fcca92e64302194995601474bc161a (diff)
downloadbcm5719-llvm-7ac1039957f9aebcdf3ccf36cdd11067eb42b832.tar.gz
bcm5719-llvm-7ac1039957f9aebcdf3ccf36cdd11067eb42b832.zip
[GlobalISel] Defer setting HasCalls on MachineFrameInfo to selection time.
We currently always set the HasCalls on MFI during translation and legalization if we're handling a call or legalizing to a libcall. However, if that call is later optimized to a tail call then we don't need the flag. The flag being set to true causes frame lowering to always save and restore FP/LR, which adds unnecessary code. This change does the same thing as SelectionDAG and ports over some code that scans instructions after selection, using TargetInstrInfo to determine if target opcodes are known calls. Code size geomean improvements on CTMark: -O0 : 0.1% -Os : 0.3% Differential Revision: https://reviews.llvm.org/D67868 llvm-svn: 372443
Diffstat (limited to 'llvm/lib/CodeGen/LivePhysRegs.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud