[llvm] 25d2a5b - [NFC] Rename variables to FPOp (#173792)

via llvm-commits llvm-commits at lists.llvm.org
Sun Dec 28 13:00:06 PST 2025


Author: Mikołaj Piróg
Date: 2025-12-28T22:00:01+01:00
New Revision: 25d2a5b51fecf6f986fbf3c53b88a9b8b0b89dbd

URL: https://github.com/llvm/llvm-project/commit/25d2a5b51fecf6f986fbf3c53b88a9b8b0b89dbd
DIFF: https://github.com/llvm/llvm-project/commit/25d2a5b51fecf6f986fbf3c53b88a9b8b0b89dbd.diff

LOG: [NFC] Rename variables to FPOp (#173792)

In my earlier PR (https://github.com/llvm/llvm-project/pull/167574),
I've named a variable in fpext function wrong. I've changed the name in
both functions to generic FPOp

Added: 
    

Modified: 
    llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
index 99d31cd0a21d8..d570581a8d608 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
@@ -3997,8 +3997,8 @@ void SelectionDAGBuilder::visitFPTrunc(const User &I) {
   SDValue N = getValue(I.getOperand(0));
   SDLoc dl = getCurSDLoc();
   SDNodeFlags Flags;
-  if (auto *TruncInst = dyn_cast<FPMathOperator>(&I))
-    Flags.copyFMF(*TruncInst);
+  if (auto *FPOp = dyn_cast<FPMathOperator>(&I))
+    Flags.copyFMF(*FPOp);
   const TargetLowering &TLI = DAG.getTargetLoweringInfo();
   EVT DestVT = TLI.getValueType(DAG.getDataLayout(), I.getType());
   setValue(&I, DAG.getNode(ISD::FP_ROUND, dl, DestVT, N,
@@ -4013,8 +4013,8 @@ void SelectionDAGBuilder::visitFPExt(const User &I) {
   EVT DestVT = DAG.getTargetLoweringInfo().getValueType(DAG.getDataLayout(),
                                                         I.getType());
   SDNodeFlags Flags;
-  if (auto *TruncInst = dyn_cast<FPMathOperator>(&I))
-    Flags.copyFMF(*TruncInst);
+  if (auto *FPOp = dyn_cast<FPMathOperator>(&I))
+    Flags.copyFMF(*FPOp);
   setValue(&I, DAG.getNode(ISD::FP_EXTEND, getCurSDLoc(), DestVT, N, Flags));
 }
 


        


More information about the llvm-commits mailing list