diff options
| author | Chris Lattner <clattner@google.com> | 2019-01-27 09:33:19 -0800 |
|---|---|---|
| committer | jpienaar <jpienaar@google.com> | 2019-03-29 15:40:38 -0700 |
| commit | b42bea215ad8292e68436f68e15900b65f8c8e5e (patch) | |
| tree | 95506329ddc177c4aa2a7d3e573c777b2fbfee0e /mlir/lib/Analysis/AffineStructures.cpp | |
| parent | 36babbd7815519db5d26f55695fa3ec500997bcd (diff) | |
| download | bcm5719-llvm-b42bea215ad8292e68436f68e15900b65f8c8e5e.tar.gz bcm5719-llvm-b42bea215ad8292e68436f68e15900b65f8c8e5e.zip | |
Change AffineApplyOp to produce a single result, simplifying the code that
works with it, and updating the g3docs.
PiperOrigin-RevId: 231120927
Diffstat (limited to 'mlir/lib/Analysis/AffineStructures.cpp')
| -rw-r--r-- | mlir/lib/Analysis/AffineStructures.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mlir/lib/Analysis/AffineStructures.cpp b/mlir/lib/Analysis/AffineStructures.cpp index 7aa23bbe480..2ea4091f82b 100644 --- a/mlir/lib/Analysis/AffineStructures.cpp +++ b/mlir/lib/Analysis/AffineStructures.cpp @@ -105,8 +105,7 @@ AffineValueMap::AffineValueMap(const AffineApplyOp &op) : map(op.getAffineMap()) { for (auto *operand : op.getOperands()) operands.push_back(const_cast<Value *>(operand)); - for (unsigned i = 0, e = op.getNumResults(); i < e; i++) - results.push_back(const_cast<Value *>(op.getResult(i))); + results.push_back(const_cast<Value *>(op.getResult())); } AffineValueMap::AffineValueMap(AffineMap map, ArrayRef<Value *> operands) |

