Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions llvm/lib/Target/AMDGPU/SIInstrInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -729,6 +729,7 @@ class SIInstrInfo final : public AMDGPUGenInstrInfo {
case AMDGPU::S_MAX_I32:
case AMDGPU::S_MAX_U32:
case AMDGPU::S_ADDK_I32:
case AMDGPU::SI_PC_ADD_REL_OFFSET:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should have new test that covers the regression

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also it would be better to invert the logic, The default should not be to assume this is foldable

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added new test and inverted logic.

return false;
}
}
Expand Down