torch-mlir/lib/Dialect/Torch/Transforms
Ashay Rane 9017be9e9e
torch: copy uses to prevent iterator invalidation (#1033)
Prior to this patch, the code in the `torch-simplify-shape-calculations`
pass iterated on the uses of an op's result while also modifying the
value.  This caused the iterator to get invalidated, thus terminating
the loop early and producing incorrect IR.  This patch makes use of
`llvm::make_early_inc_range()` to ensure that the iterator is not
invalidated while executing the loop body.
2022-07-11 18:47:04 -07:00
..
AdjustCallingConventions.cpp llvm: bump tag to e1318078 (#781) 2022-04-26 12:27:51 -07:00
CMakeLists.txt Introduce new shape library design. 2022-03-15 12:41:58 -07:00
DecomposeComplexOps.cpp Undo shape lib changes + update function signature of sum + zero (#1035) 2022-07-11 10:56:12 -07:00
DropShapeCalculations.cpp torch: allow torch dialect ops after running drop-shape pass (#979) 2022-06-25 07:27:47 -07:00
GlobalizeObjectGraph.cpp llvm: bump tag to e1318078 (#781) 2022-04-26 12:27:51 -07:00
InlineGlobalSlots.cpp Dual license the torch-mlir project. 2021-10-01 10:46:08 -07:00
MaximizeValueSemantics.cpp [MLIR][TORCH] Add decomposition of aten.numpy_T op 2022-06-16 00:01:22 +05:30
PassDetail.h llvm: bump tag to e1318078 (#781) 2022-04-26 12:27:51 -07:00
Passes.cpp [MLIR][TORCH] Add decomposition of aten.repeat (#932) 2022-07-01 13:02:31 +08:00
PrepareForGlobalizeObjectGraph.cpp llvm: bump tag to e1318078 (#781) 2022-04-26 12:27:51 -07:00
ReduceOpVariants.cpp Undo shape lib changes + update function signature of sum + zero (#1035) 2022-07-11 10:56:12 -07:00
RefinePublicReturn.cpp llvm: bump tag to e1318078 (#781) 2022-04-26 12:27:51 -07:00
RefineTypes.cpp Undo shape lib changes + update function signature of sum + zero (#1035) 2022-07-11 10:56:12 -07:00
ReifyShapeCalculations.cpp llvm: bump tag to e1318078 (#781) 2022-04-26 12:27:51 -07:00
ShapeLibrary.cpp Undo shape lib changes + update function signature of sum + zero (#1035) 2022-07-11 10:56:12 -07:00
SimplifyShapeCalculations.cpp torch: copy uses to prevent iterator invalidation (#1033) 2022-07-11 18:47:04 -07:00