Replace checks for rank -1 with direct calls to hasRank
authorGeoffrey Martin-Noble <gcmn@google.com>
Sat, 25 May 2019 00:46:58 +0000 (17:46 -0700)
committerMehdi Amini <joker.eph@gmail.com>
Sun, 2 Jun 2019 03:01:33 +0000 (20:01 -0700)
commit15075d5a2262af82012909076a5a7d4556af1879
tree9f022ef062b338615649675a60cac36d014932c5
parent58a766705bcf38e7d4d132979b7402789376cc6d
Replace checks for rank -1 with direct calls to hasRank

    Also removed a redundant check for rank after already checking for static shape (which implies rank)

--

PiperOrigin-RevId: 249927636
mlir/lib/IR/Operation.cpp
mlir/lib/Parser/Parser.cpp
mlir/test/IR/invalid.mlir