Diff Detail
Event Timeline
- Refactor and updated isExtractHiElt function
- Extracted work done in one iteration for selecting modifiers into a separate function so it can be used in selectVOP3NoMods. For same reason, parts that only look through instructions are separated and done before any code that selects source modifiers.
- Added type checks in a lot of cases.
| llvm/test/CodeGen/AMDGPU/GlobalISel/vop3-op-sel.ll | ||
|---|---|---|
| 101–106 | We should make combines for eliminating these. selectVOP3NoMods currently prevents this from being vop2 but other instructions would not have been eliminated otherwise. | |
| llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp | ||
|---|---|---|
| 3542 | Braces and save type to variable instead of querying it a second time later | |
Not sure, but it might be cleaner to return Register (and return Register() on failure)?