[llvm] [FunctionLoweringInfo] Remove unnecesary check for isVectorTy after isIntegerTy. NFC (PR #171880)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 11 10:17:11 PST 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-llvm-selectiondag
Author: Craig Topper (topperc)
<details>
<summary>Changes</summary>
isIntegerTy is only true for scalars.
---
Full diff: https://github.com/llvm/llvm-project/pull/171880.diff
1 Files Affected:
- (modified) llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp (+1-1)
``````````diff
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;
``````````
</details>
https://github.com/llvm/llvm-project/pull/171880
More information about the llvm-commits
mailing list