Loading llvm/include/llvm/Transforms/IPO/Attributor.h +3 −1 Original line number Diff line number Diff line Loading @@ -1840,7 +1840,9 @@ struct DerefState : AbstractState { /// ``` /// In that case, AccessedBytesMap is `{0:4, 4:4, 8:4, 40:4}`. /// AccessedBytesMap is std::map so it is iterated in accending order on /// key(Offset). So KnownBytes will be updated like this: |Access | KnownBytes /// key(Offset). So KnownBytes will be updated like this: /// /// |Access | KnownBytes /// |(0, 4)| 0 -> 4 /// |(4, 4)| 4 -> 8 /// |(8, 4)| 8 -> 12 Loading llvm/lib/Transforms/IPO/Attributor.cpp +7 −6 Original line number Diff line number Diff line Loading @@ -1564,7 +1564,7 @@ struct AANoFreeFloating : AANoFreeImpl { isa<PHINode>(UserI) || isa<SelectInst>(UserI)) { Follow = true; return true; }; } // Unknown user. return false; Loading Loading @@ -3254,7 +3254,8 @@ struct AAAlignImpl : AAAlign { bool followUse(Attributor &A, const Use *U, const Instruction *I) { bool TrackUse = false; unsigned int KnownAlign = getKnownAlignForUse(A, *this, getAssociatedValue(), U, I, TrackUse); unsigned int KnownAlign = getKnownAlignForUse(A, *this, getAssociatedValue(), U, I, TrackUse); takeKnownMaximum(KnownAlign); return TrackUse; Loading Loading
llvm/include/llvm/Transforms/IPO/Attributor.h +3 −1 Original line number Diff line number Diff line Loading @@ -1840,7 +1840,9 @@ struct DerefState : AbstractState { /// ``` /// In that case, AccessedBytesMap is `{0:4, 4:4, 8:4, 40:4}`. /// AccessedBytesMap is std::map so it is iterated in accending order on /// key(Offset). So KnownBytes will be updated like this: |Access | KnownBytes /// key(Offset). So KnownBytes will be updated like this: /// /// |Access | KnownBytes /// |(0, 4)| 0 -> 4 /// |(4, 4)| 4 -> 8 /// |(8, 4)| 8 -> 12 Loading
llvm/lib/Transforms/IPO/Attributor.cpp +7 −6 Original line number Diff line number Diff line Loading @@ -1564,7 +1564,7 @@ struct AANoFreeFloating : AANoFreeImpl { isa<PHINode>(UserI) || isa<SelectInst>(UserI)) { Follow = true; return true; }; } // Unknown user. return false; Loading Loading @@ -3254,7 +3254,8 @@ struct AAAlignImpl : AAAlign { bool followUse(Attributor &A, const Use *U, const Instruction *I) { bool TrackUse = false; unsigned int KnownAlign = getKnownAlignForUse(A, *this, getAssociatedValue(), U, I, TrackUse); unsigned int KnownAlign = getKnownAlignForUse(A, *this, getAssociatedValue(), U, I, TrackUse); takeKnownMaximum(KnownAlign); return TrackUse; Loading