Go to file
Richard Sandiford 96aa93d5f1 Fix overly pessimistic shortcut in post-RA MachineLICM
Post-RA LICM keeps three sets of registers: PhysRegDefs, PhysRegClobbers
and TermRegs.  When it sees a definition of R it adds all aliases of R
to the corresponding set, so that when it needs to test for membership
it only needs to test a single register, rather than worrying about
aliases there too.  E.g. the final candidate loop just has:

    unsigned Def = Candidates[i].Def;
    if (!PhysRegClobbers.test(Def) && ...) {

to test whether register Def is multiply defined.

However, there was also a shortcut in ProcessMI to make sure we didn't
add candidates if we already knew that they would fail the final test.
This shortcut was more pessimistic than the final one because it
checked whether _any alias_ of the defined register was multiply defined.
This is too conservative for targets that define register pairs.
E.g. on z, R0 and R1 are sometimes used as a pair, so there is a
128-bit register that aliases both R0 and R1.  If a loop used
R0 and R1 independently, and the definition of R0 came first,
we would be able to hoist the R0 assignment (because that used
the final test quoted above) but not the R1 assignment (because
that meant we had two definitions of the paired R0/R1 register
and would fail the shortcut in ProcessMI).

This patch just uses the same check for the ProcessMI shortcut as
we use in the final candidate loop.

llvm-svn: 188774
2013-08-20 09:11:13 +00:00
clang Rename __AVX512__ to __AVX512F__ 2013-08-20 07:52:37 +00:00
clang-tools-extra Add dependencies on TransformUtils library in preparation for re-applying r188666 2013-08-19 13:58:56 +00:00
compiler-rt It appears that glibc 2.13 has the same thread descriptor size as 2.11, 2013-08-18 10:04:51 +00:00
debuginfo-tests Now that we get non-trivial value parameters locations correct, un-XFAIL these tests. 2013-06-19 22:07:11 +00:00
libclc Add mul_hi implementation [v2] 2013-08-19 18:31:49 +00:00
libcxx G M: minor fix to silence warning in cmake version 2.8.11.20130809-gba97e. 2013-08-19 21:42:07 +00:00
libcxxabi tip-of-trunk clang has corrected some access checks for special members in a virtual inheritance hierarchy. Change a few private inheritances to protected. This change will not impact what the test was testing. This fixes http://llvm.org/bugs/show_bug.cgi?id=16753. 2013-07-30 19:00:45 +00:00
lld [PECOFF] Handle "--" option explicitly 2013-08-13 21:44:44 +00:00
lldb Change the sidebar to link directly to the C++ API docs and the Python API docs, 2013-08-19 20:53:56 +00:00
llvm Fix overly pessimistic shortcut in post-RA MachineLICM 2013-08-20 09:11:13 +00:00
polly Rename "polly-test" in the document and script. 2013-08-18 07:33:28 +00:00