[PATCH] D24273: AMDGPU: Fix immediate folding logic when shrinking instructions
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 6 11:45:20 PDT 2016
arsenm created this revision.
arsenm added a reviewer: tstellarAMD.
arsenm added a subscriber: llvm-commits.
Herald added subscribers: nhaehnle, wdng, arsenm.
If the literal is being folded into src0, it doesn't matter
if it's an SGPR because it's being replaced with the literal.
Also fixes initially selecting 32-bit versions of some instructions
which also confused commuting.
https://reviews.llvm.org/D24273
Files:
lib/Target/AMDGPU/SIInstrInfo.cpp
lib/Target/AMDGPU/SIInstructions.td
lib/Target/AMDGPU/SIShrinkInstructions.cpp
test/CodeGen/AMDGPU/ctlz.ll
test/CodeGen/AMDGPU/fneg-fabs.ll
test/CodeGen/AMDGPU/half.ll
test/CodeGen/AMDGPU/llvm.amdgcn.rsq.clamp.ll
test/CodeGen/AMDGPU/or.ll
test/CodeGen/AMDGPU/s_movk_i32.ll
test/CodeGen/AMDGPU/si-literal-folding.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D24273.70443.patch
Type: text/x-patch
Size: 12809 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160906/707ceb65/attachment.bin>
More information about the llvm-commits
mailing list