[AArch64][NFC] Fix a comment error
authorzhongyunde <zhongyunde@huawei.com>
Tue, 14 Jun 2022 05:54:49 +0000 (13:54 +0800)
committerzhongyunde <zhongyunde@huawei.com>
Tue, 14 Jun 2022 05:57:41 +0000 (13:57 +0800)
Reviewed By: dmgreen

Differential Revision: https://reviews.llvm.org/D127708

llvm/lib/Target/AArch64/AArch64.td
llvm/lib/Target/AArch64/AArch64MachineScheduler.cpp

index 8d5bf16..4254261 100644 (file)
@@ -217,7 +217,7 @@ def FeatureSlowPaired128 : SubtargetFeature<"slow-paired-128",
 
 def FeatureAscendStoreAddress : SubtargetFeature<"ascend-store-address",
     "IsStoreAddressAscend", "false",
-    "Schedule scalar stores by ascending address">;
+    "Schedule vector stores by ascending address">;
 
 def FeatureSlowSTRQro : SubtargetFeature<"slow-strqro-store", "IsSTRQroSlow",
     "true", "STR of Q register with register offset is slow">;
index 9c69a37..6c8845e 100644 (file)
@@ -26,7 +26,7 @@ static bool needReorderStoreMI(const MachineInstr *MI) {
        return false;
     LLVM_FALLTHROUGH;
   case AArch64::STPQi:
-    return AArch64InstrInfo::getLdStOffsetOp(*MI).getType() == MachineOperand::MO_Immediate;
+    return AArch64InstrInfo::getLdStOffsetOp(*MI).isImm();
   }
 
   return false;