We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6651bfa commit 81baf9eCopy full SHA for 81baf9e
llvm/lib/Target/AMDGPU/SIRegisterInfo.h
@@ -456,10 +456,8 @@ class SIRegisterInfo final : public AMDGPUGenRegisterInfo {
456
unsigned SubReg) const;
457
458
std::optional<uint8_t> getVRegFlagValue(StringRef Name) const override {
459
- if (Name == "WWM_REG") {
460
- return AMDGPU::VirtRegFlag::WWM_REG;
461
- }
462
- return {};
+ return (Name == "WWM_REG") ? AMDGPU::VirtRegFlag::WWM_REG
+ : std::optional<uint8_t>{};
463
}
464
465
SmallVector<SmallString<8>>
0 commit comments