[PATCH] D13123: PeepholeOptimizer: Remove redundant copies

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 23 19:00:12 PDT 2015


arsenm created this revision.
arsenm added a reviewer: qcolombet.
arsenm added a subscriber: llvm-commits.

If a virtual register is copied and another copy was already
seen, replace with the previous copy.
    
This pattern shows up from various operand restrictions
AMDGPU has which require inserting copies depending
on the register class of the operands.

http://reviews.llvm.org/D13123

Files:
  lib/CodeGen/PeepholeOptimizer.cpp
  test/CodeGen/AMDGPU/address-space.ll
  test/CodeGen/AMDGPU/use-sgpr-multiple-times.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13123.35582.patch
Type: text/x-patch
Size: 8396 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150924/53a0ff03/attachment.bin>


More information about the llvm-commits mailing list