[llvm] [AMDGPU] Fix mode register pass for constrained FP operations (PR #90085)

Abhinav Garg via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 29 22:50:33 PDT 2024


================
@@ -430,6 +430,9 @@ void SIModeRegister::processBlockPhase3(MachineBasicBlock &MBB,
 }
 
 bool SIModeRegister::runOnMachineFunction(MachineFunction &MF) {
+  const Function &F = MF.getFunction();
+  if (F.hasFnAttribute(llvm::Attribute::StrictFP))
----------------
abhigargrepo wrote:

Updated, kindly review

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


More information about the llvm-commits mailing list