[llvm] [VPlanTransform] Specialize simplifyRecipe for VPSingleDefRecipe pointer. nfc (PR #165568)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 30 08:18:50 PDT 2025
================
@@ -1245,39 +1241,39 @@ static void simplifyRecipe(VPRecipeBase &R, VPTypeAnalysis &TypeInfo) {
if (match(Def, m_Intrinsic<Intrinsic::vp_merge>(m_True(), m_VPValue(A),
m_VPValue(X), m_VPValue())) &&
match(A, m_c_BinaryOr(m_Specific(X), m_VPValue(Y))) &&
- TypeInfo.inferScalarType(R.getVPSingleValue())->isIntegerTy(1)) {
+ TypeInfo.inferScalarType(Def->getVPSingleValue())->isIntegerTy(1)) {
----------------
fhahn wrote:
```suggestion
TypeInfo.inferScalarType(Def)->isIntegerTy(1)) {
```
https://github.com/llvm/llvm-project/pull/165568
More information about the llvm-commits
mailing list