[llvm] [NFC][LLVM] Refactor rounding mode detection of constrained fp intrinsic IDs (PR #90854)

Thorsten Schütt via llvm-commits llvm-commits at lists.llvm.org
Thu May 2 07:26:10 PDT 2024


================
@@ -2053,11 +2053,8 @@ bool IRTranslator::translateConstrainedFPIntrinsic(
     Flags |= MachineInstr::NoFPExcept;
 
   SmallVector<llvm::SrcOp, 4> VRegs;
-  VRegs.push_back(getOrCreateVReg(*FPI.getArgOperand(0)));
-  if (!FPI.isUnaryOp())
-    VRegs.push_back(getOrCreateVReg(*FPI.getArgOperand(1)));
-  if (FPI.isTernaryOp())
-    VRegs.push_back(getOrCreateVReg(*FPI.getArgOperand(2)));
+  for (unsigned i = 0, e = FPI.getNonMetadataArgCount(); i != e; ++i)
----------------
tschuett wrote:

uppercase i and e.

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


More information about the llvm-commits mailing list