Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Event Timeline
mlir/lib/Dialect/StandardOps/IR/Ops.cpp | ||
---|---|---|
3497 | Can you add local variables for the ShapedType of source() and getResult()? Would simplify here and above. |
mlir/lib/Dialect/StandardOps/IR/Ops.cpp | ||
---|---|---|
3501 | Are all of these cases just handling the situation where the input and output type are the same? |
mlir/lib/Dialect/StandardOps/IR/Ops.cpp | ||
---|---|---|
3501 | This can be type equality in the static case. |
mlir/lib/Dialect/StandardOps/IR/Ops.cpp | ||
---|---|---|
3501 | Can you just write it using type comparison then? Type comparison is O(1), whereas shape comparison is O(N). Both of these if statements are handling static shapes. |
mlir/lib/Dialect/StandardOps/IR/Ops.cpp | ||
---|---|---|
3501 | Done! but hasStaticShape() itself is O(N) |
Can you add local variables for the ShapedType of source() and getResult()? Would simplify here and above.