[llvm] 2dfc49e - [SelectionDAG] Update stale comment on isOneOrOneSplat. NFC

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Sat Oct 22 18:52:48 PDT 2022


Author: Craig Topper
Date: 2022-10-22T18:50:42-07:00
New Revision: 2dfc49e589b27c8e6193edb0c29e963db1bd203f

URL: https://github.com/llvm/llvm-project/commit/2dfc49e589b27c8e6193edb0c29e963db1bd203f
DIFF: https://github.com/llvm/llvm-project/commit/2dfc49e589b27c8e6193edb0c29e963db1bd203f.diff

LOG: [SelectionDAG] Update stale comment on isOneOrOneSplat. NFC

Added: 
    

Modified: 
    llvm/include/llvm/CodeGen/SelectionDAGNodes.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/CodeGen/SelectionDAGNodes.h b/llvm/include/llvm/CodeGen/SelectionDAGNodes.h
index 20767bb61c9a8..f3661a329d8ea 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


        


More information about the llvm-commits mailing list