]> granicus.if.org Git - llvm/commit
AMDGPU: Workaround for instruction size with literals
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 1 Nov 2016 20:42:24 +0000 (20:42 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 1 Nov 2016 20:42:24 +0000 (20:42 +0000)
commit5ec7e2e1d10e3e7e1ca1a760590b0f7a765f9567
tree16fe6e893cb11b76dbc901e3a5789829dd152640
parentc24244e8de5ee74b4f14e239a8bad450535568dd
AMDGPU: Workaround for instruction size with literals

Instructions with a 32-bit base encoding with an optional
32-bit literal encoded after them report their size as 4
for the disassembler. Consider these when computing the
MachineInstr size. This fixes problems caused by size estimate
consistency in BranchRelaxation.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@285743 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/SIDefines.h
lib/Target/AMDGPU/SIInstrFormats.td
lib/Target/AMDGPU/SIInstrInfo.cpp
lib/Target/AMDGPU/SIInstrInfo.h
lib/Target/AMDGPU/SOPInstructions.td