diff options
author | Chijun Sima <simachijun@gmail.com> | 2018-07-12 04:08:14 +0000 |
---|---|---|
committer | Chijun Sima <simachijun@gmail.com> | 2018-07-12 04:08:14 +0000 |
commit | 2e334e065d14ab1a0ec2762f347b0ad5357af0de (patch) | |
tree | 2c3c715ea3579abc14a27898fda2b37ec3d2e3a9 /llvm/unittests/Support/FormatVariadicTest.cpp | |
parent | b86031819836fcf0e375c01f8a6439e54ca996d2 (diff) | |
download | bcm5719-llvm-2e334e065d14ab1a0ec2762f347b0ad5357af0de.tar.gz bcm5719-llvm-2e334e065d14ab1a0ec2762f347b0ad5357af0de.zip |
[Dominators] Add isUpdateLazy() method to the DomTreeUpdater
Summary:
Previously, when people need to deal with DTU with different UpdateStrategy using different actions, they need to
```
if (DTU.getUpdateStrategy() == DomTreeUpdater::UpdateStrategy::Lazy) {
...
}
if (DTU.getUpdateStrategy() == DomTreeUpdater::UpdateStrategy::Eager) {
...
}
```
After the patch, they can avoid code patterns above
```
if (DTU.isUpdateLazy()){
...
}
if (!DTU.isUpdateLazy()){
...
}
```
Reviewers: kuhar, brzycki, dmgreen
Reviewed By: kuhar
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D49056
llvm-svn: 336886
Diffstat (limited to 'llvm/unittests/Support/FormatVariadicTest.cpp')
0 files changed, 0 insertions, 0 deletions