aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/LoopPassManager.cpp
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2016-12-10 00:39:12 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2016-12-10 00:39:12 +0000
commit4bd72361935300f1699d3e49ba3304f0c7631f1a (patch)
tree2d92b1bd6dc4e80a7d6622d1efbb91d843b62a43 /llvm/lib/Analysis/LoopPassManager.cpp
parent86581e496b07cd975b8df2e59734b1d5341f0fa3 (diff)
downloadllvm-4bd72361935300f1699d3e49ba3304f0c7631f1a.zip
llvm-4bd72361935300f1699d3e49ba3304f0c7631f1a.tar.gz
llvm-4bd72361935300f1699d3e49ba3304f0c7631f1a.tar.bz2
AMDGPU: Fix handling of 16-bit immediates
Since 32-bit instructions with 32-bit input immediate behavior are used to materialize 16-bit constants in 32-bit registers for 16-bit instructions, determining the legality based on the size is incorrect. Change operands to have the size specified in the type. Also adds a workaround for a disassembler bug that produces an immediate MCOperand for an operand that is supposed to be OPERAND_REGISTER. The assembler appears to accept out of bounds immediates and truncates them, but this seems to be an issue for 32-bit already. llvm-svn: 289306
Diffstat (limited to 'llvm/lib/Analysis/LoopPassManager.cpp')
0 files changed, 0 insertions, 0 deletions