]> granicus.if.org Git - llvm/commitdiff
[PowerPC] fix trivial typos in comment, NFC
authorHiroshi Inoue <inouehrs@jp.ibm.com>
Tue, 9 Apr 2019 08:40:02 +0000 (08:40 +0000)
committerHiroshi Inoue <inouehrs@jp.ibm.com>
Tue, 9 Apr 2019 08:40:02 +0000 (08:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@357981 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPCFrameLowering.cpp
lib/Target/PowerPC/PPCISelDAGToDAG.cpp
lib/Target/PowerPC/PPCISelLowering.h

index efe06de21e6eaf59215474a06a0ec54898e8d4d8..9ff8312d98897b2babd9f64b63605ccfd4109a13 100644 (file)
@@ -756,7 +756,7 @@ bool PPCFrameLowering::stackUpdateCanBeMoved(MachineFunction &MF) const {
   if (FI->hasFastCall() || FI->usesPICBase())
     return false;
 
-  // Finally we can move the stack update if we do not require regiser
+  // Finally we can move the stack update if we do not require register
   // scavenging. Register scavenging can introduce more spills and so
   // may make the frame size larger than we have computed.
   return !RegInfo->requiresFrameIndexScavenging(MF);
index d544d50690c6dc0a72aa2441dfe9c71d34d0aa92..610e7c0de10456620ce7028b29dea52975a29983 100644 (file)
@@ -2372,7 +2372,7 @@ public:
 
   // Here we try to match complex bit permutations into a set of
   // rotate-and-shift/shift/and/or instructions, using a set of heuristics
-  // known to produce optimial code for common cases (like i32 byte swapping).
+  // known to produce optimal code for common cases (like i32 byte swapping).
   SDNode *Select(SDNode *N) {
     Memoizer.clear();
     auto Result =
@@ -4213,12 +4213,12 @@ static bool mayUseP9Setb(SDNode *N, const ISD::CondCode &CC, SelectionDAG *DAG,
 
   // Without this setb optimization, the outer SELECT_CC will be manually
   // selected to SELECT_CC_I4/SELECT_CC_I8 Pseudo, then expand-isel-pseudos pass
-  // transforms pseduo instruction to isel instruction. When there are more than
+  // transforms pseudo instruction to isel instruction. When there are more than
   // one use for result like zext/sext, with current optimization we only see
   // isel is replaced by setb but can't see any significant gain. Since
   // setb has longer latency than original isel, we should avoid this. Another
   // point is that setb requires comparison always kept, it can break the
-  // oppotunity to get the comparison away if we have in future.
+  // opportunity to get the comparison away if we have in future.
   if (!SetOrSelCC.hasOneUse() || (!InnerIsSel && !FalseRes.hasOneUse()))
     return false;
 
index 93920e9f9a9a534c290ab36160ca385da02be70d..ef5311154662946a10ee24d8f665c345bf2dded5 100644 (file)
@@ -40,7 +40,7 @@ namespace llvm {
     // the enum. The order of elements in this enum matters!
     // Values that are added after this entry:
     //     STBRX = ISD::FIRST_TARGET_MEMORY_OPCODE
-    // are considerd memory opcodes and are treated differently than entries
+    // are considered memory opcodes and are treated differently than entries
     // that come before it. For example, ADD or MUL should be placed before
     // the ISD::FIRST_TARGET_MEMORY_OPCODE while a LOAD or STORE should come
     // after it.
@@ -192,7 +192,7 @@ namespace llvm {
       /// Direct move from a GPR to a VSX register (zero)
       MTVSRZ,
 
-      /// Direct move of 2 consective GPR to a VSX register.
+      /// Direct move of 2 consecutive GPR to a VSX register.
       BUILD_FP128,
 
       /// Extract a subvector from signed integer vector and convert to FP.