diff options
| author | Chris Lattner <clattner@google.com> | 2018-12-28 13:07:39 -0800 |
|---|---|---|
| committer | jpienaar <jpienaar@google.com> | 2019-03-29 14:43:58 -0700 |
| commit | 315a466aed9bcc896007098719ed9e0a35a3459d (patch) | |
| tree | 5de796018001a55709d69fc51d362197680d315c /mlir/lib/Transforms/CSE.cpp | |
| parent | 2a463c36b1f1cc42e585144a9b012cf948baa708 (diff) | |
| download | bcm5719-llvm-315a466aed9bcc896007098719ed9e0a35a3459d.tar.gz bcm5719-llvm-315a466aed9bcc896007098719ed9e0a35a3459d.zip | |
Rename BasicBlock and StmtBlock to Block, and make a pass cleaning it up. I did not make an effort to rename all of the 'bb' names in the codebase, since they are still correct and any specific missed once can be fixed up on demand.
The last major renaming is Statement -> Instruction, which is why Statement and
Stmt still appears in various places.
This is step 19/n towards merging instructions and statements, NFC.
PiperOrigin-RevId: 227163082
Diffstat (limited to 'mlir/lib/Transforms/CSE.cpp')
| -rw-r--r-- | mlir/lib/Transforms/CSE.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mlir/lib/Transforms/CSE.cpp b/mlir/lib/Transforms/CSE.cpp index 04f7cfdc3e9..a5b45ba4098 100644 --- a/mlir/lib/Transforms/CSE.cpp +++ b/mlir/lib/Transforms/CSE.cpp @@ -182,7 +182,7 @@ struct CFGCSE : public CSEImpl { // Check to see if we need to process this node. if (!currentNode->processed) { currentNode->processed = true; - simplifyBasicBlock(currentNode->node->getBlock()); + simplifyBlock(currentNode->node->getBlock()); // Otherwise, check to see if we need to process a child node. } else if (currentNode->childIterator != currentNode->node->end()) { auto *childNode = *(currentNode->childIterator++); @@ -199,7 +199,7 @@ struct CFGCSE : public CSEImpl { eraseDeadOperations(); } - void simplifyBasicBlock(BasicBlock *bb) { + void simplifyBlock(Block *bb) { for (auto &i : *bb) if (auto *opInst = dyn_cast<OperationInst>(&i)) simplifyOperation(opInst); |

