Commit 4ecf2554 authored by Hideto Ueno's avatar Hideto Ueno
Browse files

[Attributor][NFC] Fix comments and unnecessary comma

parent 827bade2
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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
+7 −6
Original line number Diff line number Diff line
@@ -1564,7 +1564,7 @@ struct AANoFreeFloating : AANoFreeImpl {
          isa<PHINode>(UserI) || isa<SelectInst>(UserI)) {
        Follow = true;
        return true;
      };
      }

      // Unknown user.
      return false;
@@ -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;