Skip to content
Commit d12e82e5 authored by Benjamin Kramer's avatar Benjamin Kramer
Browse files

SimplifyCFG: Enhance the "remove CFG edge that leads to null pointer...

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
parent 5ea246cf
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