summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM64/ARM64AdvSIMDScalarPass.cpp
diff options
context:
space:
mode:
authorAlp Toker <alp@nuanti.com>2014-04-09 14:47:27 +0000
committerAlp Toker <alp@nuanti.com>2014-04-09 14:47:27 +0000
commit16f98b255d213a7ca599c0d07119e96e96206ee9 (patch)
treeadf70fd6c649a0346917f39e229300d07724d4c9 /llvm/lib/Target/ARM64/ARM64AdvSIMDScalarPass.cpp
parent246b0b617d66d7e8107e3a5f9a4522ff7ec2afd2 (diff)
downloadbcm5719-llvm-16f98b255d213a7ca599c0d07119e96e96206ee9.tar.gz
bcm5719-llvm-16f98b255d213a7ca599c0d07119e96e96206ee9.zip
Fix some doc and comment typos
llvm-svn: 205899
Diffstat (limited to 'llvm/lib/Target/ARM64/ARM64AdvSIMDScalarPass.cpp')
-rw-r--r--llvm/lib/Target/ARM64/ARM64AdvSIMDScalarPass.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Target/ARM64/ARM64AdvSIMDScalarPass.cpp b/llvm/lib/Target/ARM64/ARM64AdvSIMDScalarPass.cpp
index 83f8cdae49c..83a3883fec8 100644
--- a/llvm/lib/Target/ARM64/ARM64AdvSIMDScalarPass.cpp
+++ b/llvm/lib/Target/ARM64/ARM64AdvSIMDScalarPass.cpp
@@ -14,7 +14,7 @@
//===----------------------------------------------------------------------===//
// TODO: Graph based predicate heuristics.
// Walking the instruction list linearly will get many, perhaps most, of
-// the cases, but to do a truly throrough job of this, we need a more
+// the cases, but to do a truly thorough job of this, we need a more
// wholistic approach.
//
// This optimization is very similar in spirit to the register allocator's
@@ -74,7 +74,7 @@ private:
// instruction. "add Xd, Xn, Xm" ==> "add Dd, Da, Db", for example.
bool isProfitableToTransform(const MachineInstr *MI) const;
- // tranformInstruction - Perform the transformation of an instruction
+ // transformInstruction - Perform the transformation of an instruction
// to its equivalant AdvSIMD scalar instruction. Update inputs and outputs
// to be the correct register class, minimizing cross-class copies.
void transformInstruction(MachineInstr *MI);
@@ -252,7 +252,7 @@ bool ARM64AdvSIMDScalar::isProfitableToTransform(const MachineInstr *MI) const {
if (AllUsesAreCopies)
--NumNewCopies;
- // If a tranform will not increase the number of cross-class copies required,
+ // If a transform will not increase the number of cross-class copies required,
// return true.
if (NumNewCopies <= NumRemovableCopies)
return true;
@@ -273,7 +273,7 @@ static MachineInstr *insertCopy(const ARM64InstrInfo *TII, MachineInstr *MI,
return MIB;
}
-// tranformInstruction - Perform the transformation of an instruction
+// transformInstruction - Perform the transformation of an instruction
// to its equivalant AdvSIMD scalar instruction. Update inputs and outputs
// to be the correct register class, minimizing cross-class copies.
void ARM64AdvSIMDScalar::transformInstruction(MachineInstr *MI) {
OpenPOWER on IntegriCloud