The two-address instruction pass will convert these back to v_mad_f32
if necessary.
Details
Diff Detail
Event Timeline
LGTM
lib/Target/AMDGPU/SIFoldOperands.cpp | ||
---|---|---|
131 | FoldList seems like it should be a set or map instead |
lib/Target/AMDGPU/SIFoldOperands.cpp | ||
---|---|---|
131 | A map with UseMI as the Key and FoldCandidate as the value? |
lib/Target/AMDGPU/SIFoldOperands.cpp | ||
---|---|---|
131 | Yes. Is there a reason FoldList will be known to be small? |
lib/Target/AMDGPU/SIFoldOperands.cpp | ||
---|---|---|
131 | The size of FoldList is the number of unique uses of a register, so it will usually be small. |
lib/Target/AMDGPU/SIFoldOperands.cpp | ||
---|---|---|
131 | Actually, we can' t use a map, because it is possible to have the same UseMI in the list twice. We only disallow it if we need to commute the UseMI in order to fold an operand into it. |
FoldList seems like it should be a set or map instead