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

Teach the new SROA a new trick. Now we zap any memcpy or memmoves which

are in fact identity operations. We detect these and kill their
partitions so that even splitting is unaffected by them. This is
particularly important because Clang relies on emitting identity memcpy
operations for struct copies, and these fold away to constants very
often after inlining.

Fixes the last big performance FIXME I have on my plate.

llvm-svn: 165285
parent 90c4a3ae
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment