summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-02-23 05:56:17 +0000
committerChris Lattner <sabre@nondot.org>2009-02-23 05:56:17 +0000
commitd5420f0957d17e9a222efb747f770f678de33135 (patch)
tree3e48d181466e805307113fa2e7d8137af838165b /llvm/lib/Transforms
parent3ae59110424522e3b577d89371f07d79068d66bf (diff)
downloadbcm5719-llvm-d5420f0957d17e9a222efb747f770f678de33135.tar.gz
bcm5719-llvm-d5420f0957d17e9a222efb747f770f678de33135.zip
fix some typos that Duncan noticed
llvm-svn: 65306
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Scalar/InstructionCombining.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
index 2b18640f41a..1a4396bace3 100644
--- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
@@ -10219,7 +10219,7 @@ Instruction *InstCombiner::FoldPHIArgGEPIntoPHI(PHINode &PN) {
}
// If all of the base pointers of the PHI'd GEPs are from allocas, don't
- // bother doing this transformation. At best, this will just safe a bit of
+ // bother doing this transformation. At best, this will just save a bit of
// offset calculation, but all the predecessors will have to materialize the
// stack address into a register anyway. We'd actually rather *clone* the
// load up into the predecessors so that we have a load of a gep of an alloca,
@@ -10265,8 +10265,8 @@ Instruction *InstCombiner::FoldPHIArgGEPIntoPHI(PHINode &PN) {
}
-/// isSafeAndProfitableToSinkLoad - Return true if we know that it is safe sink
-/// the load out of the block that defines it. This means that it must be
+/// isSafeAndProfitableToSinkLoad - Return true if we know that it is safe to
+/// sink the load out of the block that defines it. This means that it must be
/// obvious the value of the load is not changed from the point of the load to
/// the end of the block it is in.
///
OpenPOWER on IntegriCloud