diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2012-10-04 16:11:49 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2012-10-04 16:11:49 +0000 |
commit | d12e82e5239c63cb04e27533b34f376713847f95 (patch) | |
tree | 161e983fe30355882a45574555e9770d4167d608 /llvm/lib/CodeGen/MachineTraceMetrics.cpp | |
parent | 5ea246cf137c6545ca9f1f77376121914b059615 (diff) | |
download | llvm-d12e82e5239c63cb04e27533b34f376713847f95.zip llvm-d12e82e5239c63cb04e27533b34f376713847f95.tar.gz llvm-d12e82e5239c63cb04e27533b34f376713847f95.tar.bz2 |
SimplifyCFG: Enhance the "remove CFG edge that leads to null pointer dereference" optimization to also handle instructions with multiple uses.
We conservatively only check the first use to avoid walking long use chains.
This catches the common case of having both a load and a store to a pointer
supplied by a PHI node.
llvm-svn: 165232
Diffstat (limited to 'llvm/lib/CodeGen/MachineTraceMetrics.cpp')
0 files changed, 0 insertions, 0 deletions