[llvm] [ConstantFolding] Fold sqrt poison -> poison (PR #141821)
Yingwei Zheng via llvm-commits
llvm-commits at lists.llvm.org
Fri May 30 05:45:38 PDT 2025
dtcxzyw wrote:
> But I guess we'll still need to figure out how to handle the case whenever not all arguments are constant, e.g only one operand is poison. Should that be handled by ValueTracking?
Yeah. Generally we should handle these cases in `propagatesPoison` and `simplifyIntrinsic`. Unfortunately, we have to repeat this in ConstantFolding for non-splat vectors :(
https://github.com/llvm/llvm-project/pull/141821
More information about the llvm-commits
mailing list