[llvm] [VPlan] Fix broadcasted values using loop region during execution (PR #142594)
Luke Lau via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 11 07:05:23 PDT 2025
================
@@ -290,18 +290,22 @@ Value *VPTransformState::get(const VPValue *Def, bool NeedsScalar) {
return Data.VPV2Vector[Def];
auto GetBroadcastInstrs = [this, Def](Value *V) {
+ VPBasicBlock *PreheaderVPBB = nullptr;
+ if (auto *Header = vputils::getFirstLoopHeader(*Plan, VPDT))
----------------
lukel97 wrote:
Good idea, done in ab70f479d500f7c5bb2770ae03b7ac2f8998895b
https://github.com/llvm/llvm-project/pull/142594
More information about the llvm-commits
mailing list