aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.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
commit82eca35b3eb041ab2e337560c8f1c2129742bddc (patch)
treef7b9caa391e91073319c71e384158b16548c0790 /clang/lib/Frontend/CompilerInvocation.cpp
parente9c5e2cc71e7e405dc462bfd49a797b2b1dd0c0e (diff)
downloadllvm-82eca35b3eb041ab2e337560c8f1c2129742bddc.zip
llvm-82eca35b3eb041ab2e337560c8f1c2129742bddc.tar.gz
llvm-82eca35b3eb041ab2e337560c8f1c2129742bddc.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. llvm-svn: 105997
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions