aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuneyoung Lee <aqjune@gmail.com>2020-03-25 16:34:34 +0900
committerJuneyoung Lee <aqjune@gmail.com>2020-03-25 16:34:43 +0900
commit453eac3f779b562b68b5171d0b30481111c2b51e (patch)
treefedde4c04ac5047d57fcd81881498ecf23bf8e89
parent1262db1b6a99d1ed79735e5ef377b1d2c23da3e7 (diff)
downloadllvm-453eac3f779b562b68b5171d0b30481111c2b51e.zip
llvm-453eac3f779b562b68b5171d0b30481111c2b51e.tar.gz
llvm-453eac3f779b562b68b5171d0b30481111c2b51e.tar.bz2
Minor fixes to a comment in CodeGenPrepare
-rw-r--r--llvm/lib/CodeGen/CodeGenPrepare.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/CodeGenPrepare.cpp b/llvm/lib/CodeGen/CodeGenPrepare.cpp
index 1cccd6f..1fd5154 100644
--- a/llvm/lib/CodeGen/CodeGenPrepare.cpp
+++ b/llvm/lib/CodeGen/CodeGenPrepare.cpp
@@ -7200,7 +7200,7 @@ bool CodeGenPrepare::optimizeInst(Instruction *I, bool &ModifiedDT) {
}
if (FreezeInst *FI = dyn_cast<FreezeInst>(I)) {
- // br(freeze(icmp a, const)) -> br(icmp (freeze a), const)
+ // freeze(icmp a, const)) -> icmp (freeze a), const
// This helps generate efficient conditional jumps.
Instruction *CmpI = nullptr;
if (ICmpInst *II = dyn_cast<ICmpInst>(FI->getOperand(0)))