Add a folder for division by one.
authorPhoenix Meadowlark <phoenix@cs.washington.edu>
Mon, 27 Apr 2020 19:59:16 +0000 (19:59 +0000)
committerMehdi Amini <joker.eph@gmail.com>
Mon, 27 Apr 2020 22:35:10 +0000 (22:35 +0000)
commit622aac6a0ad74126fab2fa5c2043bc0424c7eace
treeea58a5d915b18470f731f02c34e0e1e520ce2790
parentcf7edb6ea507949ce859510970698c9c11887d98
Add a folder for division by one.

- Adds a folder for integer division by one with the `divi_signed` and `divi_unsigned` ops.
- Creates tests for scalar and tensor versions of these ops.
- Modifies the test in `parallel-loop-collapsing.mlir` so that it doesn't assume division by one will be in the output.

Differential Revision: https://reviews.llvm.org/D78518
mlir/lib/Dialect/StandardOps/IR/Ops.cpp
mlir/test/Transforms/canonicalize.mlir
mlir/test/Transforms/parallel-loop-collapsing.mlir