Jean-Luc Duprat
c5cf6e5365
Provide InstCombines for the following 3 cases:
...
A * (1 - (uitofp i1 C)) -> select C, 0, A
B * (uitofp i1 C) -> select C, B, 0
select C, 0, A + select C, B, 0 -> select C, B, A
These come up in code that has been hand-optimized from a select to a linear blend,
on platforms where that may have mattered. We want to undo such changes
with the following transform:
A*(1 - uitofp i1 C) + B*(uitofp i1 C) -> select C, A, B
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181216 91177308-0d34-0410-b5e6-96231b3b80d8
2013-05-06 16:55:50 +00:00
..
2013-03-21 18:30:10 +00:00
2013-05-01 00:25:27 +00:00
2012-12-30 01:28:40 +00:00
2013-05-06 01:48:55 +00:00
2013-02-07 07:01:54 +00:00
2013-02-24 15:34:43 +00:00
2013-04-22 06:12:31 +00:00
2013-04-30 17:52:57 +00:00
2013-03-18 12:07:24 +00:00
2013-03-21 00:55:59 +00:00
2013-04-22 06:12:31 +00:00
2013-04-19 09:32:30 +00:00
2013-04-02 08:16:45 +00:00
2013-05-06 02:07:24 +00:00
2013-03-19 20:00:22 +00:00
2013-03-22 20:36:39 +00:00
2013-05-06 16:55:50 +00:00
2013-04-19 16:56:24 +00:00
2012-10-26 18:47:48 +00:00
2013-02-22 09:09:42 +00:00
2013-04-30 17:52:57 +00:00
2012-07-02 12:47:22 +00:00
2013-03-12 16:27:52 +00:00
2013-02-20 07:21:42 +00:00
2013-01-10 23:32:01 +00:00
2012-12-30 02:33:22 +00:00
2012-07-02 12:47:22 +00:00
2013-05-02 18:11:35 +00:00
2013-03-12 16:27:52 +00:00
2013-04-30 17:52:57 +00:00
2013-05-05 01:54:48 +00:00
2013-03-28 02:44:59 +00:00
2013-02-22 09:09:42 +00:00
2013-04-30 17:52:57 +00:00
2013-01-01 13:57:25 +00:00
2013-04-29 06:53:53 +00:00
2013-04-19 09:32:30 +00:00
2012-08-10 20:55:20 +00:00
2013-04-30 17:52:57 +00:00
2013-01-08 10:51:32 +00:00
2013-04-05 21:07:08 +00:00
2013-01-01 13:57:25 +00:00
2013-04-29 21:28:24 +00:00
2013-03-21 00:55:59 +00:00
2013-04-30 17:52:57 +00:00
2013-05-01 19:53:30 +00:00
2013-01-01 13:57:25 +00:00
2013-03-12 16:27:52 +00:00
2013-03-12 16:27:52 +00:00