From 7d8260feb602883bae48e792e26c9d9897f249a0 Mon Sep 17 00:00:00 2001 From: Sanjay Patel Date: Sun, 10 Mar 2019 18:42:30 +0000 Subject: [PATCH] [CGP] fix comments; NFC llvm-svn: 355791 --- llvm/lib/CodeGen/CodeGenPrepare.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/lib/CodeGen/CodeGenPrepare.cpp b/llvm/lib/CodeGen/CodeGenPrepare.cpp index 57182f6de411..80335f55c77c 100644 --- a/llvm/lib/CodeGen/CodeGenPrepare.cpp +++ b/llvm/lib/CodeGen/CodeGenPrepare.cpp @@ -1049,7 +1049,7 @@ bool CodeGenPrepare::simplifyOffsetableRelocate(Instruction &I) { return MadeChange; } -/// SinkCast - Sink the specified cast instruction into its user blocks +/// Sink the specified cast instruction into its user blocks. static bool SinkCast(CastInst *CI) { BasicBlock *DefBB = CI->getParent(); @@ -1421,7 +1421,7 @@ static bool sinkAndCmp0Expression(Instruction *AndI, for (auto *U : AndI->users()) { Instruction *User = cast(U); - // Only sink for and mask feeding icmp with 0. + // Only sink 'and' feeding icmp with 0. if (!isa(User)) return false;