[PATCH] D63709: [AMDGPU] Add peephole to optimize MOV
Piotr Sobczak via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 24 05:27:48 PDT 2019
piotr created this revision.
Herald added subscribers: llvm-commits, t-tye, tpr, dstuttard, yaxunl, nhaehnle, wdng, jvesely, kzhuravl, arsenm, qcolombet, MatzeB.
Herald added a project: LLVM.
Add peephole optimization to remove redundant MOV if:
- the MOV is identical to a MOV in the immediate predecessor of MBB and
- no instruction between them modifies the destination register
Change-Id: Ibb187e3219ef641b7681e4123c7ca3fe8e1d14e6
Repository:
rL LLVM
https://reviews.llvm.org/D63709
Files:
lib/Target/AMDGPU/SIShrinkInstructions.cpp
test/CodeGen/AMDGPU/control-flow-fastregalloc.ll
test/CodeGen/AMDGPU/remove-redundant-mov.mir
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D63709.206200.patch
Type: text/x-patch
Size: 13595 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190624/ccc66ed2/attachment.bin>
More information about the llvm-commits
mailing list