[llvm] [SPIRV] Add FPVariant tracking for floating-point registers in SPIR-V (PR #156871)

via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 5 07:44:31 PDT 2025


================
@@ -2088,3 +2100,15 @@ bool SPIRVGlobalRegistry::hasBlockDecoration(SPIRVType *Type) const {
   }
   return false;
 }
+
+SPIRVGlobalRegistry::FPVariant
+SPIRVGlobalRegistry::getFPVariantForVReg(Register VReg,
+                                         const MachineFunction *MF) {
+  auto t = VRegFPVariantMap.find(MF ? MF : CurMF);
----------------
YixingZhang007 wrote:

Thanks for the suggestion! I have made the change :) 

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


More information about the llvm-commits mailing list