[llvm] 07a4154 - Minor fix to a comment in CodeGenPrepare.cpp

Juneyoung Lee via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 16 09:10:35 PDT 2020


Author: Juneyoung Lee
Date: 2020-03-17T01:10:26+09:00
New Revision: 07a41544fde9d4bad2ee7bc42c4852514467a1b5

URL: https://github.com/llvm/llvm-project/commit/07a41544fde9d4bad2ee7bc42c4852514467a1b5
DIFF: https://github.com/llvm/llvm-project/commit/07a41544fde9d4bad2ee7bc42c4852514467a1b5.diff

LOG: Minor fix to a comment in CodeGenPrepare.cpp

Added: 
    

Modified: 
    llvm/lib/CodeGen/CodeGenPrepare.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/CodeGenPrepare.cpp b/llvm/lib/CodeGen/CodeGenPrepare.cpp
index fd55ef2936b0..1cccd6fade4e 100644
--- a/llvm/lib/CodeGen/CodeGenPrepare.cpp
+++ b/llvm/lib/CodeGen/CodeGenPrepare.cpp
@@ -6140,7 +6140,7 @@ bool CodeGenPrepare::optimizeSelectInst(SelectInst *SI) {
   //    select.end:
   //       %sel = phi i32 [ %c, %select.true ], [ %d, %select.false ]
   //
-  // %cmp should be freezed, otherwise it may introduce undefined behavior.
+  // %cmp should be frozen, otherwise it may introduce undefined behavior.
   // In addition, we may sink instructions that produce %c or %d from
   // the entry block into the destination(s) of the new branch.
   // If the true or false blocks do not contain a sunken instruction, that


        


More information about the llvm-commits mailing list