================ @@ -1116,9 +1116,9 @@ std::optional<APInt> llvm::getIConstantSplatVal(const Register Reg, const MachineRegisterInfo &MRI) { if (auto SplatValAndReg = getAnyConstantSplat(Reg, MRI, /* AllowUndef */ false)) { - std::optional<ValueAndVReg> ValAndVReg = - getIConstantVRegValWithLookThrough(SplatValAndReg->VReg, MRI); - return ValAndVReg->Value; + if (std::optional<ValueAndVReg> ValAndVReg = ---------------- qcolombet wrote:
@changpeng A comment here would be nice. E.g., "Even if the value is a splat constant, it may not be an integer one." https://github.com/llvm/llvm-project/pull/71989 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits