summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/TargetRegisterInfo.cpp
diff options
context:
space:
mode:
authorTobias Grosser <tobias@grosser.es>2014-09-10 14:38:12 +0000
committerTobias Grosser <tobias@grosser.es>2014-09-10 14:38:12 +0000
commit31f3da3d2afdff29de2e9f2d065f379162932354 (patch)
treed795f9823492ee5eda67ca46c33b3ce54da2f87c /llvm/lib/CodeGen/TargetRegisterInfo.cpp
parentcfb28f77a42b1d2a4abc7cce29a33594bf6d2c3f (diff)
downloadbcm5719-llvm-31f3da3d2afdff29de2e9f2d065f379162932354.tar.gz
bcm5719-llvm-31f3da3d2afdff29de2e9f2d065f379162932354.zip
No need to check for non-existing std::map elements
It seems we added guards to check for non-existing std::map elements to make sure they are default constructed before first accessed. Besides, the code being wrong because of checking Context.NonAffineAccesses[BasePointer].size() instead of Context.cound(BasePointer), such a check is also not necessary as std::map takes care of this already. From the std::map documentation: "If k does not match the key of any element in the container, the function inserts a new element with that key and returns a reference to its mapped value. Notice that this always increases the container size by one, even if no mapped value is assigned to the element (the element is constructed using its default constructor)." llvm-svn: 217506
Diffstat (limited to 'llvm/lib/CodeGen/TargetRegisterInfo.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud