File tree Expand file tree Collapse file tree 2 files changed +14
-14
lines changed
Expand file tree Collapse file tree 2 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -448,20 +448,6 @@ struct PointerDiffInfo {
448448 NeedsFreeze (NeedsFreeze) {}
449449};
450450
451- // / A pair of pointers that could overlap across a loop iteration.
452- struct PointerDiffInfoValues {
453- // / The pointer being read from
454- Value *Src;
455- // / The pointer being stored to
456- Value *Sink;
457-
458- PointerDiffInfoValues (const SCEV *SrcStart, const SCEV *SinkStart,
459- SCEVExpander Exp, Instruction *Loc)
460- : Src(Exp.expandCodeFor(SrcStart, SrcStart->getType (), Loc)),
461- Sink(Exp.expandCodeFor(SinkStart, SinkStart->getType (), Loc)) {}
462- PointerDiffInfoValues (Value *Src, Value *Sink) : Src(Src), Sink(Sink) {}
463- };
464-
465451// / Holds information about the memory runtime legality checks to verify
466452// / that a group of pointers do not overlap.
467453class RuntimePointerChecking {
Original file line number Diff line number Diff line change @@ -3827,6 +3827,20 @@ inline bool isUniformAfterVectorization(VPValue *VPV) {
38273827bool isHeaderMask (VPValue *V, VPlan &Plan);
38283828} // end namespace vputils
38293829
3830+ // / A pair of pointers that could overlap across a loop iteration.
3831+ struct PointerDiffInfoValues {
3832+ // / The pointer being read from
3833+ Value *Src;
3834+ // / The pointer being stored to
3835+ Value *Sink;
3836+
3837+ PointerDiffInfoValues (const SCEV *SrcStart, const SCEV *SinkStart,
3838+ SCEVExpander Exp, Instruction *Loc)
3839+ : Src(Exp.expandCodeFor(SrcStart, SrcStart->getType (), Loc)),
3840+ Sink(Exp.expandCodeFor(SinkStart, SinkStart->getType (), Loc)) {}
3841+ PointerDiffInfoValues (Value *Src, Value *Sink) : Src(Src), Sink(Sink) {}
3842+ };
3843+
38303844} // end namespace llvm
38313845
38323846#endif // LLVM_TRANSFORMS_VECTORIZE_VPLAN_H
You can’t perform that action at this time.
0 commit comments