Don't override SubtargetPredicate since that is already set in the
base classes for the appropriate subtarget like MIMG_gfx10. Use
OtherPredicates instead for consistency with the way we handle
features like HasImageInsts and HasExtendedImageInsts. NFC.
Details
Diff Detail
- Repository
 - rG LLVM Github Monorepo
 
Unit Tests
| Time | Test | |
|---|---|---|
| 60,060 ms | x64 debian > libFuzzer.libFuzzer::large.test | 
Event Timeline
| llvm/lib/Target/AMDGPU/MIMGInstructions.td | ||
|---|---|---|
| 1090 | Do you need to concatenate Predicates set in the enclosing scope? Isn't this overriding let OtherPredicates = [HasImageInsts] ?  | |
| llvm/lib/Target/AMDGPU/MIMGInstructions.td | ||
|---|---|---|
| 1090 | Yes this relies on HasGFX10_AEncoding being a subset of HasImageInsts. The code just above was already doing this for HasExtendedImageInsts so I thought it was OK like that.  | |
Regardless if you decide to use both predicates or not this is LGTM.
| llvm/lib/Target/AMDGPU/MIMGInstructions.td | ||
|---|---|---|
| 1090 | This is a list, so you could use both is that is a concern: [HasGFX10_AEncoding, HasImageInsts].  | |
Do you need to concatenate Predicates set in the enclosing scope? Isn't this overriding let OtherPredicates = [HasImageInsts] ?
That may not matter in practice if HasGFX10_AEncoding implies HasImageInsts