Details
- Reviewers
foad Petar.Avramovic mbrkusanin
Diff Detail
Event Timeline
| llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp | ||
|---|---|---|
| 1108 | Why not just return false? Is failing to select not good enough? | |
| llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp | ||
|---|---|---|
| 1108 | This reproduces the current behavior. A few lit tests also happen to use this to sneak an undef past the IR passes | |
This reproduces the current behavior.
You mean SelectionDAG behaviour? I'm not a huge fan of reproducing weird corner case behaviour, but I guess this is OK.
| llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp | ||
|---|---|---|
| 1120 | Can you either put the new code here, or assert that getV_CMPOpcode succeeded here? | |
| llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp | ||
|---|---|---|
| 1120 | getV_CMPOpcode can still fail based on the type (although I guess illegal i16 compares should have failed the verifier already) | |
Why not just return false? Is failing to select not good enough?