From 2dfc49e589b27c8e6193edb0c29e963db1bd203f Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Sat, 22 Oct 2022 18:38:13 -0700 Subject: [PATCH] [SelectionDAG] Update stale comment on isOneOrOneSplat. NFC --- llvm/include/llvm/CodeGen/SelectionDAGNodes.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/llvm/include/llvm/CodeGen/SelectionDAGNodes.h b/llvm/include/llvm/CodeGen/SelectionDAGNodes.h index 20767bb..f3661a3 100644 --- a/llvm/include/llvm/CodeGen/SelectionDAGNodes.h +++ b/llvm/include/llvm/CodeGen/SelectionDAGNodes.h @@ -1742,7 +1742,8 @@ bool isNullOrNullSplat(SDValue V, bool AllowUndefs = false); /// Return true if the value is a constant 1 integer or a splatted vector of a /// constant 1 integer (with no undefs). -/// Does not permit build vector implicit truncation. +/// Build vector implicit truncation is allowed, but the truncated bits need to +/// be zero. bool isOneOrOneSplat(SDValue V, bool AllowUndefs = false); /// Return true if the value is a constant -1 integer or a splatted vector of a -- 2.7.4