[llvm] 4d692da - [ConstantFolding] Drop misleading comment (NFC)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 22 11:45:37 PDT 2021


Author: Nikita Popov
Date: 2021-10-22T20:45:25+02:00
New Revision: 4d692daa3a6ab876171063eb22be21b94df829e7

URL: https://github.com/llvm/llvm-project/commit/4d692daa3a6ab876171063eb22be21b94df829e7
DIFF: https://github.com/llvm/llvm-project/commit/4d692daa3a6ab876171063eb22be21b94df829e7.diff

LOG: [ConstantFolding] Drop misleading comment (NFC)

As pointed out by Philip, this part of the comment is misleading,
as it describes undef rather than poison behavior. Just mentioning
poison should be sufficient.

Added: 
    

Modified: 
    llvm/include/llvm/Analysis/ConstantFolding.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/Analysis/ConstantFolding.h b/llvm/include/llvm/Analysis/ConstantFolding.h
index 2cf4eddda77a..a3e3f8f90afc 100644
--- a/llvm/include/llvm/Analysis/ConstantFolding.h
+++ b/llvm/include/llvm/Analysis/ConstantFolding.h
@@ -129,8 +129,7 @@ Constant *ConstantFoldShuffleVectorInstruction(Constant *V1, Constant *V2,
                                                ArrayRef<int> Mask);
 
 /// Extract value of C at the given Offset reinterpreted as Ty. If bits past
-/// the end of C are accessed, they are assumed to be poison and may take any
-/// value.
+/// the end of C are accessed, they are assumed to be poison.
 Constant *ConstantFoldLoadFromConst(Constant *C, Type *Ty, const APInt &Offset,
                                     const DataLayout &DL);
 


        


More information about the llvm-commits mailing list