NFC - fix name / comments - isAccessInvariant
authorUday Bondhugula <uday@polymagelabs.com>
Wed, 4 Dec 2019 17:29:51 +0000 (09:29 -0800)
committerA. Unique TensorFlower <gardener@tensorflow.org>
Wed, 4 Dec 2019 17:30:22 +0000 (09:30 -0800)
commit0827fa562dc90fb3bed9f19ee4b0d36b0b5c3ac3
tree99e65818c08fd8f480d7068f69f24c7a990403c2
parentbf45ff6aab02712f2a0b4352417dadff36563d9c
NFC - fix name / comments - isAccessInvariant

- the name was misleading; this is really checking if a Value being used
  to index was loop IV invariant. Update comment.

- the method is only used locally; what can be exposed in the future is
  isAccessInvariant(LoadOrStoreOp op, Value *iv)

Signed-off-by: Uday Bondhugula <uday@polymagelabs.com>
Closes tensorflow/mlir#285

COPYBARA_INTEGRATE_REVIEW=https://github.com/tensorflow/mlir/pull/285 from bondhugula:quickfix fe5837abe987980c4ab469a9aa7de8e4f0007d9f
PiperOrigin-RevId: 283771923
mlir/include/mlir/Analysis/LoopAnalysis.h
mlir/lib/Analysis/LoopAnalysis.cpp