Skip to content

Commit c695b99

Browse files
committed
add code comments
1 parent c581612 commit c695b99

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

llvm/lib/Target/AMDGPU/GCNPreRAOptimizations.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,9 @@ bool GCNPreRAOptimizationsImpl::isUnpackingSupportedInstr(MachineInstr &MI) cons
262262

263263
uint16_t GCNPreRAOptimizationsImpl::mapToUnpackedOpcode(MachineInstr &I) {
264264
unsigned Opcode = I.getOpcode();
265+
// use 64 bit encoding to allow use of VOP3 instructions.
266+
// VOP3 instructions allow VOP3P source modifiers to be translated to VOP3
267+
// e32 instructions are VOP2 and don't allow source modifiers
265268
switch (Opcode) {
266269
case AMDGPU::V_PK_ADD_F32:
267270
return AMDGPU::V_ADD_F32_e64;

0 commit comments

Comments
 (0)