The two-address instruction pass will convert these back to v_mad_f32
if necessary.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
LGTM
lib/Target/AMDGPU/SIFoldOperands.cpp | ||
---|---|---|
131 ↗ | (On Diff #29323) | FoldList seems like it should be a set or map instead |
lib/Target/AMDGPU/SIFoldOperands.cpp | ||
---|---|---|
131 ↗ | (On Diff #29323) | A map with UseMI as the Key and FoldCandidate as the value? |
lib/Target/AMDGPU/SIFoldOperands.cpp | ||
---|---|---|
131 ↗ | (On Diff #29323) | Yes. Is there a reason FoldList will be known to be small? |
lib/Target/AMDGPU/SIFoldOperands.cpp | ||
---|---|---|
131 ↗ | (On Diff #29323) | 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 ↗ | (On Diff #29323) | 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. |