Improve handling of SelectInst.
authorNick Lewycky <nicholas@mxc.ca>
Sat, 2 Sep 2006 19:40:38 +0000 (19:40 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Sat, 2 Sep 2006 19:40:38 +0000 (19:40 +0000)
commita3a68bde2103e04d30b80b3d18030867bf78ea7b
treefc3e99363d8d85d715be4bd818a9d408db292fb7
parent94425996c5f58b8c2eb8be3c48c5f80fcb0d3481
Improve handling of SelectInst.
Reorder operations to remove duplicated work.
Fix to leave floating-point types out of the optimization.
Add tests to predsimplify.ll for SwitchInst and SelectInst handling.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30055 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/PredicateSimplifier.cpp
test/Transforms/PredicateSimplifier/2006-08-02-Switch.ll [new file with mode: 0644]
test/Transforms/PredicateSimplifier/predsimplify.ll