OSDN Git Service

AMDGPU/SI: Optimize adjacent s_nop instructions
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 25 Apr 2016 19:53:22 +0000 (19:53 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 25 Apr 2016 19:53:22 +0000 (19:53 +0000)
commit3a1034db384d6e74854ac5051c95c8da0ceae509
tree8cb82fe807ff83e3fff5e53137e76ede77b1ddb5
parentcb05ff92415fccb0498110b862300918b094f7db
AMDGPU/SI: Optimize adjacent s_nop instructions

Use the operand for how long to wait. This is somewhat
distasteful, since it would be better to just emit s_nop
with the right argument in the first place. This would require
changing TII::insertNoop to emit N operands, which would be easy.
Slightly more problematic is the post-RA scheduler and hazard recognizer
represent nops as a single null node, and would require inventing
another way of representing N nops.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@267456 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/SIShrinkInstructions.cpp