OSDN Git Service

In Machine CSE pass, the source register of a COPY machine instruction can
authorJiangning Liu <jiangning.liu@arm.com>
Mon, 11 Aug 2014 05:17:19 +0000 (05:17 +0000)
committerJiangning Liu <jiangning.liu@arm.com>
Mon, 11 Aug 2014 05:17:19 +0000 (05:17 +0000)
commit0679d2d0a45ba1eec6831adc6afa3c46a7ae9a9a
treefe09b435be0e22bceb412d815d6b9c7395265e7e
parent1505fa4376fb5c97625efa36d83beca49b864b2d
In Machine CSE pass, the source register of a COPY machine instruction can
be propagated to all its users, and this propagation could increase the
probability of finding common subexpressions. If the COPY has only one user,
the COPY itself can be removed.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@215344 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/MachineCSE.cpp
test/CodeGen/AArch64/machine_cse.ll [new file with mode: 0644]