Skip to content
Commit 2cfe9137 authored by Owen Anderson's avatar Owen Anderson
Browse files

Extend SimplifyCFG's common-destination folding heuristic to allow a single

"bonus" instruction to be speculatively executed.  Add a heuristic to
ensure we're not tripping up out-of-order execution by checking that this bonus
instruction only uses values that were already guaranteed to be available.

This allows us to eliminate the short circuit in (x&1)&&(x&2).

llvm-svn: 108351
parent 9765b981
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