[AArch64][GlobalISel] Clarify fallback debug print
authorJon Roelofs <jonathan_roelofs@apple.com>
Tue, 20 Apr 2021 19:39:24 +0000 (12:39 -0700)
committerJon Roelofs <jonathan_roelofs@apple.com>
Tue, 20 Apr 2021 19:41:14 +0000 (12:41 -0700)
... to only print when that fallback actually happens.

llvm/lib/Target/AArch64/GISel/AArch64CallLowering.cpp

index 17dca37..7d8b951 100644 (file)
@@ -450,9 +450,10 @@ bool AArch64CallLowering::fallBackToDAGISel(const MachineFunction &MF) const {
       }))
     return true;
   const auto &ST = MF.getSubtarget<AArch64Subtarget>();
-  LLVM_DEBUG(dbgs() << "Falling back to SDAG because we don't support no-NEON");
-  if (!ST.hasNEON() || !ST.hasFPARMv8())
+  if (!ST.hasNEON() || !ST.hasFPARMv8()) {
+    LLVM_DEBUG(dbgs() << "Falling back to SDAG because we don't support no-NEON\n");
     return true;
+  }
   return false;
 }