[llvm] 453eac3 - Minor fixes to a comment in CodeGenPrepare
Juneyoung Lee via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 25 00:34:57 PDT 2020
Author: Juneyoung Lee
Date: 2020-03-25T16:34:43+09:00
New Revision: 453eac3f779b562b68b5171d0b30481111c2b51e
URL: https://github.com/llvm/llvm-project/commit/453eac3f779b562b68b5171d0b30481111c2b51e
DIFF: https://github.com/llvm/llvm-project/commit/453eac3f779b562b68b5171d0b30481111c2b51e.diff
LOG: Minor fixes to a comment in CodeGenPrepare
Added:
Modified:
llvm/lib/CodeGen/CodeGenPrepare.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/CodeGenPrepare.cpp b/llvm/lib/CodeGen/CodeGenPrepare.cpp
index 1cccd6fade4e..1fd5154cbf5b 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)))
More information about the llvm-commits
mailing list