HomePhabricator

make jump threading recursively simplify expressions instead of doing it just…

Authored by lattner on Nov 9 2009, 5:57 PM.

Description

make jump threading recursively simplify expressions instead of doing it just one level deep. On the testcase we go from getting this:

F1: ; preds = %T2

%F = and i1 true, %cond                         ; <i1> [#uses=1]
br i1 %F, label %X, label %Y

to a fully threaded:

F1: ; preds = %T2

br label %Y

This changes gets us to the point where we're forming (too many) switch
instructions on doug's strswitch testcase.

llvm-svn: 86646

Details

Committed
lattnerNov 9 2009, 5:57 PM
Parents
rGee89d5a4d0dd: remove some redundant parens.
Branches
Unknown
Tags
Unknown