summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/CodeGenPrepare.cpp
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2017-06-27 18:05:26 +0000
committerMatthias Braun <matze@braunis.de>2017-06-27 18:05:26 +0000
commita6e77405d0932b699d2321f5930370c5d4fa591d (patch)
tree99e0fede7f0f6db0ad3919f64496624165e228fc /llvm/lib/CodeGen/CodeGenPrepare.cpp
parent7227276d4144da8310496286b314fe33f1cfa51d (diff)
downloadbcm5719-llvm-a6e77405d0932b699d2321f5930370c5d4fa591d.tar.gz
bcm5719-llvm-a6e77405d0932b699d2321f5930370c5d4fa591d.zip
LiveRangeCalc: Slightly improve map usage; NFC
- DenseMap should be faster than std::map - Use the `InsertRes = insert() if (!InsertRes.inserted)` pattern rather than the `if (!X.contains(...)) { X.insert(...); }` to save one map lookup. llvm-svn: 306436
Diffstat (limited to 'llvm/lib/CodeGen/CodeGenPrepare.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud