aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/StackProtector.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2010-06-15 16:04:21 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2010-06-15 16:04:21 +0000
commit7f1a4e2fde272e28ccf372a5aa79dc3a19916180 (patch)
treec1e7ca4b5aa99d285a603d8394c312a4762622fd /lib/CodeGen/StackProtector.cpp
parent3cae8c16381853de40154818a76d6f0ef735a86e (diff)
downloadexternal_llvm-7f1a4e2fde272e28ccf372a5aa79dc3a19916180.zip
external_llvm-7f1a4e2fde272e28ccf372a5aa79dc3a19916180.tar.gz
external_llvm-7f1a4e2fde272e28ccf372a5aa79dc3a19916180.tar.bz2
Add CoalescerPair helper class.
Given a copy instruction, CoalescerPair can determine which registers to coalesce in order to eliminate the copy. It deals with all the subreg fun to determine a tuple (DstReg, SrcReg, SubIdx) such that: - SrcReg is a virtual register that will disappear after coalescing. - DstReg is a virtual or physical register whose live range will be extended. - SubIdx is 0 when DstReg is a physical register. - SrcReg can be joined with DstReg:SubIdx. CoalescerPair::isCoalescable() determines if another copy instruction is compatible with the same tuple. This fixes some NEON miscompilations where shuffles are getting coalesced as if they were copies. The CoalescerPair class will replace a lot of the spaghetti logic in JoinCopy later. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105997 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/StackProtector.cpp')
0 files changed, 0 insertions, 0 deletions