aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/Mips/MipsISelLowering.cpp
diff options
context:
space:
mode:
authorQuentin Colombet <qcolombet@apple.com>2013-09-25 00:26:17 +0000
committerQuentin Colombet <qcolombet@apple.com>2013-09-25 00:26:17 +0000
commitce734f1f43b3c5f614b95b53e3ed86f65daca8dd (patch)
tree4084b19bb7ef689771f4cfcc61802478ca1ab4a4 /lib/Target/Mips/MipsISelLowering.cpp
parentdfca6eec3171802d6fcb091da01604ef4420fb3b (diff)
downloadexternal_llvm-ce734f1f43b3c5f614b95b53e3ed86f65daca8dd.zip
external_llvm-ce734f1f43b3c5f614b95b53e3ed86f65daca8dd.tar.gz
external_llvm-ce734f1f43b3c5f614b95b53e3ed86f65daca8dd.tar.bz2
[PR16882] Ignore noreturn definitions when setting isPhysRegUsed.
PEI inserts a save/restore sequence for the link register, according to the information it gets from the MachineRegisterInfo. MachineRegisterInfo is populated by the VirtRegMap pass. This pass was not aware of noreturn calls and was registering the definitions of these calls the same way as regular operations. Modify VirtRegPass so that it does not set the isPhysRegUsed information for registers only defined by noreturn calls. The rational is that a noreturn call is the "last instruction" of the program (if it returns the behavior is undefined), so everything that is defined by it cannot be used and will not interfere with anything else. Therefore, it is pointless to account for then. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191349 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/MipsISelLowering.cpp')
0 files changed, 0 insertions, 0 deletions