[llvm] [FunctionLoweringInfo] Remove unnecesary check for isVectorTy after isIntegerTy. NFC (PR #171880)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 11 10:16:39 PST 2025


https://github.com/topperc created https://github.com/llvm/llvm-project/pull/171880

isIntegerTy is only true for scalars.

>From 4c2b539dfbb9b1460a2b32f3c11d8b8389d632ab Mon Sep 17 00:00:00 2001
From: Craig Topper <craig.topper at sifive.com>
Date: Thu, 11 Dec 2025 10:14:52 -0800
Subject: [PATCH] [FunctionLoweringInfo] Remove unnecesary check for isVectorTy
 after isIntegerTy. NFC

isIntegerTy is only true for scalars.
---
 llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp b/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp
index 098005b6adfa2..024441d7cfac2 100644
--- a/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp
@@ -442,7 +442,7 @@ FunctionLoweringInfo::GetLiveOutRegInfo(Register Reg, unsigned BitWidth) {
 /// register based on the LiveOutInfo of its operands.
 void FunctionLoweringInfo::ComputePHILiveOutRegInfo(const PHINode *PN) {
   Type *Ty = PN->getType();
-  if (!Ty->isIntegerTy() || Ty->isVectorTy())
+  if (!Ty->isIntegerTy())
     return;
 
   SmallVector<EVT, 1> ValueVTs;



More information about the llvm-commits mailing list