================
@@ -2941,6 +2941,55 @@ Value
*InstCombinerImpl::SimplifyDemandedUseFPClass(Instruction *I,
Known = KnownLHS | KnownRHS;
break;
}
+ case Instruction::ExtractValue: {
+ ExtractValueInst *Extract = cast<ExtractValueInst>(I);
+ ArrayRef<unsigned> Indices = Extract->getIndices();
+ Value *Src = Extract->getAggregateOperand();
+ if (isa<StructType>(Src->getType()) && Indices.size() == 1 &&
----------------
arsenm wrote:
Trying to use this feels awkward. The opcode switch already matched the
extractvalue. I also want to bind the actual intrinsic call for the recursive
call to SimplifyDemandedFPClass, not the source
https://github.com/llvm/llvm-project/pull/176122
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits