Fix SliceAnalysis comment
authorNicolas Vasilache <ntv@google.com>
Tue, 16 Apr 2019 21:11:25 +0000 (14:11 -0700)
committerMehdi Amini <joker.eph@gmail.com>
Thu, 18 Apr 2019 18:48:50 +0000 (11:48 -0700)
    The description of the backward slice analysis behavior describes what would happen when creating a backward slice from node 9, not 8.

--

PiperOrigin-RevId: 243876599

mlir/include/mlir/Analysis/SliceAnalysis.h

index c76f0b2..fec79cd 100644 (file)
@@ -113,7 +113,7 @@ void getForwardSlice(
 ///              9
 ///
 /// Assuming all local orders match the numbering order:
-///    {1, 2, 5, 7, 3, 4, 6, 8}
+///    {1, 2, 5, 3, 4, 6}
 ///
 void getBackwardSlice(
     Operation *op, llvm::SetVector<Operation *> *backwardSlice,