Details
- Reviewers
• tstellarAMD arsenm - Group Reviewers
Restricted Project
Diff Detail
Event Timeline
test/CodeGen/AMDGPU/mesa_regression.ll | ||
---|---|---|
4 | There should be a CHECK line here to check for the expected load instruction. |
test/CodeGen/AMDGPU/mesa_regression.ll | ||
---|---|---|
4 | No. This patch fixes compiler error - not incorrect code generation. |
test/CodeGen/AMDGPU/mesa_regression.ll | ||
---|---|---|
4 | The original error was 'Cannot Select...', so we should add a check line that verifies we are able to select this node now. This is what we've always done when adding tests for these kinds of failures. |
lib/Target/AMDGPU/SIISelLowering.cpp | ||
---|---|---|
2788–2790 | Can we check Subtarget->getScalarizeGlobalBehavior() first? Other checks are more expensive. Also formatting. |
lib/Target/AMDGPU/SIISelLowering.cpp | ||
---|---|---|
2788–2790 | Yes. Good point about the check order. Thanks |
I think it would be better to just add run line to the original test with the option disabled
test/CodeGen/AMDGPU/mesa_regression.ll | ||
---|---|---|
1 | You don't need -O2 |
Exactly! ) This is the point I started with. The option is "false" by default and I considered that we don't need separate test for this.
Can we check Subtarget->getScalarizeGlobalBehavior() first? Other checks are more expensive. Also formatting.