Skip to content
Commit 6b78bac9 authored by Chandler Carruth's avatar Chandler Carruth
Browse files

[ADT] Add a much simpler loop to DenseMap::clear when the types are

POD-like and we can just splat the empty key across memory.

Sadly we can't optimize the normal loop well enough because we can't
turn the conditional store into an unconditional store according to the
memory model.

This loop actually showed up in a profile of code that was calling clear
as a serious source of time. =[

llvm-svn: 310189
parent 7e84697e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment