diff options
author | Dan Gohman <gohman@apple.com> | 2009-07-17 22:16:21 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-07-17 22:16:21 +0000 |
commit | ff9b4738e3aa98dbe088c10c815eaa44e38d45bd (patch) | |
tree | e75cbf9781d384862d69fdcbf1985e1a9a09c1d1 | |
parent | f8993d427babcf595daaf6f44d371165ea41d175 (diff) | |
download | external_llvm-ff9b4738e3aa98dbe088c10c815eaa44e38d45bd.zip external_llvm-ff9b4738e3aa98dbe088c10c815eaa44e38d45bd.tar.gz external_llvm-ff9b4738e3aa98dbe088c10c815eaa44e38d45bd.tar.bz2 |
Fix some typos in a comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76249 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Transforms/Scalar/InstructionCombining.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp index 1c25bec..9ddd0e0 100644 --- a/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/lib/Transforms/Scalar/InstructionCombining.cpp @@ -5456,13 +5456,13 @@ static Value *EmitGEPOffset(User *GEP, Instruction &I, InstCombiner &IC) { } -/// EvaluateGEPOffsetExpression - Return an value that can be used to compare of -/// the *offset* implied by GEP to zero. For example, if we have &A[i], we want -/// to return 'i' for "icmp ne i, 0". Note that, in general, indices can be -/// complex, and scales are involved. The above expression would also be legal -/// to codegen as "icmp ne (i*4), 0" (assuming A is a pointer to i32). This -/// later form is less amenable to optimization though, and we are allowed to -/// generate the first by knowing that pointer arithmetic doesn't overflow. +/// EvaluateGEPOffsetExpression - Return a value that can be used to compare +/// the *offset* implied by a GEP to zero. For example, if we have &A[i], we +/// want to return 'i' for "icmp ne i, 0". Note that, in general, indices can +/// be complex, and scales are involved. The above expression would also be +/// legal to codegen as "icmp ne (i*4), 0" (assuming A is a pointer to i32). +/// This later form is less amenable to optimization though, and we are allowed +/// to generate the first by knowing that pointer arithmetic doesn't overflow. /// /// If we can't emit an optimized form for this expression, this returns null. /// |