[llvm] 98a8072 - [FunctionLoweringInfo] Remove unnecesary check for isVectorTy when isIntegerTy is true. NFC (#171880)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 11 13:20:45 PST 2025
Author: Craig Topper
Date: 2025-12-11T13:20:41-08:00
New Revision: 98a8072a6599028aa9619e2a94ca7af5bd388c08
URL: https://github.com/llvm/llvm-project/commit/98a8072a6599028aa9619e2a94ca7af5bd388c08
DIFF: https://github.com/llvm/llvm-project/commit/98a8072a6599028aa9619e2a94ca7af5bd388c08.diff
LOG: [FunctionLoweringInfo] Remove unnecesary check for isVectorTy when isIntegerTy is true. NFC (#171880)
isIntegerTy is only true for scalars.
Added:
Modified:
llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp
Removed:
################################################################################
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