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

Min-Yih Hsu via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 5 16:51:37 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([&]() {
----------------
mshockwave wrote:

I agree. These DTU tree changes are now reverted.

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


More information about the llvm-commits mailing list