HomePhabricator

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

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

Unpublished Commit · Learn More

Repository Importing: This repository is still importing.
This commit no longer exists in the repository. It may have been part of a branch which was deleted.This commit has been deleted in the repository: it is no longer reachable from any branch, tag, or ref.

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

Commit No Longer Exists

This commit no longer exists in the repository.