[llvm] [AMDGPU] Implement vop3p complex pattern optmization for gisel (PR #130234)

Shilei Tian via llvm-commits llvm-commits at lists.llvm.org
Sun Mar 16 18:47:06 PDT 2025


================
@@ -4293,44 +4293,350 @@ AMDGPUInstructionSelector::selectVOP3NoMods(MachineOperand &Root) const {
   }};
 }
 
-std::pair<Register, unsigned>
-AMDGPUInstructionSelector::selectVOP3PModsImpl(
-  Register Src, const MachineRegisterInfo &MRI, bool IsDOT) const {
-  unsigned Mods = 0;
-  MachineInstr *MI = MRI.getVRegDef(Src);
+enum srcStatus {
----------------
shiltian wrote:

```suggestion
enum SrcStatus {
```

https://github.com/llvm/llvm-project/pull/130234


More information about the llvm-commits mailing list