Skip to content
Commit 40e4cec9 authored by Chris Lattner's avatar Chris Lattner
Browse files

If a variable can only hold two values, and is not already a bool, shrink it

down to actually BE a bool.  This allows simple value range propagation
stuff work harder, deleting comparisons in bzip2 in some hot loops.

This implements GlobalOpt/integer-bool.ll, which is the essence of the
loop condition distilled into a testcase.

llvm-svn: 18817
parent 17fbc80f
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