summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2019-03-10 18:42:30 +0000
committerSanjay Patel <spatel@rotateright.com>2019-03-10 18:42:30 +0000
commit7d8260feb602883bae48e792e26c9d9897f249a0 (patch)
tree16b8e76b9a60d4a52bdd8db16f54feba0582692e
parent66c9690ad6e318736a01739b622c187f4d760456 (diff)
downloadbcm5719-llvm-7d8260feb602883bae48e792e26c9d9897f249a0.tar.gz
bcm5719-llvm-7d8260feb602883bae48e792e26c9d9897f249a0.zip
[CGP] fix comments; NFC
llvm-svn: 355791
-rw-r--r--llvm/lib/CodeGen/CodeGenPrepare.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/CodeGenPrepare.cpp b/llvm/lib/CodeGen/CodeGenPrepare.cpp
index 57182f6de41..80335f55c77 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<Instruction>(U);
- // Only sink for and mask feeding icmp with 0.
+ // Only sink 'and' feeding icmp with 0.
if (!isa<ICmpInst>(User))
return false;
OpenPOWER on IntegriCloud