[llvm] [GlobalISel] Take the result size into account when const folding icmp (PR #134365)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 7 04:32:33 PDT 2025
================
@@ -1027,39 +1027,47 @@ llvm::ConstantFoldCountZeros(Register Src, const MachineRegisterInfo &MRI,
std::optional<SmallVector<APInt>>
llvm::ConstantFoldICmp(unsigned Pred, const Register Op1, const Register Op2,
+ unsigned DstSizeInBits, unsigned ExtOp,
----------------
arsenm wrote:
What about vectors? Should just pass in the LLT, or include scalar in the name?
https://github.com/llvm/llvm-project/pull/134365
More information about the llvm-commits
mailing list