diff options
author | Misha Brukman <brukman+llvm@gmail.com> | 2003-08-18 14:43:39 +0000 |
---|---|---|
committer | Misha Brukman <brukman+llvm@gmail.com> | 2003-08-18 14:43:39 +0000 |
commit | 5560c9d49ccae132cabf1155f18aa0480dce3eda (patch) | |
tree | 8fd8c1924c3dd2243b805e6e4d076cbdc57855fb /lib/Transforms/Scalar | |
parent | 00d7af60b0ac2e790b5be2821ccca895a00b0972 (diff) | |
download | external_llvm-5560c9d49ccae132cabf1155f18aa0480dce3eda.tar.gz external_llvm-5560c9d49ccae132cabf1155f18aa0480dce3eda.tar.bz2 external_llvm-5560c9d49ccae132cabf1155f18aa0480dce3eda.zip |
Spell `necessary' correctly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7944 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar')
-rw-r--r-- | lib/Transforms/Scalar/ADCE.cpp | 2 | ||||
-rw-r--r-- | lib/Transforms/Scalar/Reassociate.cpp | 2 | ||||
-rw-r--r-- | lib/Transforms/Scalar/SCCP.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/Transforms/Scalar/ADCE.cpp b/lib/Transforms/Scalar/ADCE.cpp index 27623fbacb..a22cdce641 100644 --- a/lib/Transforms/Scalar/ADCE.cpp +++ b/lib/Transforms/Scalar/ADCE.cpp @@ -208,7 +208,7 @@ bool ADCE::doADCE() { std::set<BasicBlock*> AliveBlocks; // Process the work list of instructions that just became live... if they - // became live, then that means that all of their operands are neccesary as + // became live, then that means that all of their operands are necessary as // well... make them live as well. // while (!WorkList.empty()) { diff --git a/lib/Transforms/Scalar/Reassociate.cpp b/lib/Transforms/Scalar/Reassociate.cpp index 716785b691..94446d09b8 100644 --- a/lib/Transforms/Scalar/Reassociate.cpp +++ b/lib/Transforms/Scalar/Reassociate.cpp @@ -177,7 +177,7 @@ static Value *NegateValue(Value *V, BasicBlock::iterator &BI) { // X = -(A+12+C+D) into X = -A + -12 + -C + -D = -12 + -A + -C + -D // so that later, a: Y = 12+X could get reassociated with the -12 to eliminate // the constants. We assume that instcombine will clean up the mess later if - // we introduce tons of unneccesary negation instructions... + // we introduce tons of unnecessary negation instructions... // if (Instruction *I = dyn_cast<Instruction>(V)) if (I->getOpcode() == Instruction::Add && I->use_size() == 1) { diff --git a/lib/Transforms/Scalar/SCCP.cpp b/lib/Transforms/Scalar/SCCP.cpp index c0ff2fae74..06227d80e5 100644 --- a/lib/Transforms/Scalar/SCCP.cpp +++ b/lib/Transforms/Scalar/SCCP.cpp @@ -132,7 +132,7 @@ private: } // getValueState - Return the InstVal object that corresponds to the value. - // This function is neccesary because not all values should start out in the + // This function is necessary because not all values should start out in the // underdefined state... Argument's should be overdefined, and // constants should be marked as constants. If a value is not known to be an // Instruction object, then use this accessor to get its value from the map. |