Skip to content

Conversation

@aeubanks
Copy link
Contributor

This reverts commit 2e33734.

Causes breakages internally, will post reproducer later.

This reverts commit 2e33734.

Causes breakages internally, will post reproducer later.
@llvmbot
Copy link
Member

llvmbot commented Jun 18, 2025

@llvm/pr-subscribers-llvm-transforms

@llvm/pr-subscribers-vectorizers

Author: Arthur Eubanks (aeubanks)

Changes

This reverts commit 2e33734.

Causes breakages internally, will post reproducer later.


Full diff: https://github.com/llvm/llvm-project/pull/144758.diff

1 Files Affected:

  • (modified) llvm/lib/Transforms/Vectorize/VPlan.cpp (+2)
diff --git a/llvm/lib/Transforms/Vectorize/VPlan.cpp b/llvm/lib/Transforms/Vectorize/VPlan.cpp
index 4332332ef5cc3..773a5a4a829c7 100644
--- a/llvm/lib/Transforms/Vectorize/VPlan.cpp
+++ b/llvm/lib/Transforms/Vectorize/VPlan.cpp
@@ -1015,6 +1015,8 @@ void VPlan::execute(VPTransformState *State) {
   for (VPBlockBase *Block : RPOT)
     Block->execute(State);
 
+  State->CFG.DTU.flush();
+
   VPBasicBlock *Header = vputils::getFirstLoopHeader(*this, State->VPDT);
   if (!Header)
     return;

Copy link
Contributor

@fhahn fhahn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's surprising, LGTM thanks

fhahn referenced this pull request Jun 18, 2025
The current version does not need the explicit flush at this point.
@aeubanks aeubanks merged commit dfe4d44 into llvm:main Jun 18, 2025
9 of 10 checks passed
@aeubanks aeubanks deleted the revert branch June 18, 2025 18:00
@fhahn
Copy link
Contributor

fhahn commented Jun 20, 2025

@aeubanks @nico any chance you already managed to get a reproducer?

@aeubanks
Copy link
Contributor Author

@fhahn I've been trying to come up with a reproducer, but it's in a ThinLTO build. am continuing to try this week. it might be an earlier pass not properly invalidating DT?

@aeubanks
Copy link
Contributor Author

@fhahn
opt -p loop-vectorize on the following produces different output
b.ll.txt

hopefully this is enough to debug given the PR said it was NFC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants