[llvm] [AArch64][LoopIdiom] Generalize AArch64LoopIdiomTransform into LoopIdiomVectorize (PR #94081)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 5 12:59:51 PDT 2024


================
@@ -742,6 +682,11 @@ void AArch64LoopIdiomTransform::transformByteCompare(
   DomTreeUpdater DTU(DT, DomTreeUpdater::UpdateStrategy::Lazy);
   Builder.SetCurrentDebugLocation(PHBranch->getDebugLoc());
 
+  // Safeguard to check if we build the correct DomTree with DTU.
+  auto CheckDTU = llvm::make_scope_exit([&]() {
----------------
topperc wrote:

Should this be a separate patch?

https://github.com/llvm/llvm-project/pull/94081


More information about the llvm-commits mailing list