Skip to content
Commit 25b6068b authored by Evan Cheng's avatar Evan Cheng
Browse files

If any def of a machine-sink candidate has local uses, it's obviously not safe...

If any def of a machine-sink candidate has local uses, it's obviously not safe to sink it to a successor block. This bug has been hidden because a later check for critical-edge disable these illegal optimizations. This patch should significantly reduce the amount of time spent on checking dominator information for obviously unsafe sinking.

llvm-svn: 111450
parent 211a787e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment