Sanjay Patel
8755396e8d
[InstCombine] LogicOpc (zext X), C --> zext (LogicOpc X, C) (PR28476)
...
The benefits of this change include:
1. Remove DeMorgan-matching code that was added specifically to work-around
the missing transform in http://reviews.llvm.org/rL248634 .
2. Makes the DeMorgan transform work for vectors too.
3. Fix PR28476: https://llvm.org/bugs/show_bug.cgi?id=28476
Extending this transform to other casts and other associative operators may
be useful too. See https://reviews.llvm.org/D22421 for a prerequisite for
doing that though.
Differential Revision: https://reviews.llvm.org/D22271
llvm-svn: 276221
2016-07-21 00:24:18 +00:00
Sanjay Patel
c9b0579ff3
[InstCombine] enhance (select X, C1, C2 --> ext X) to handle vectors
...
By replacing dyn_cast of ConstantInt with m_Zero/m_One/m_AllOnes, we
allow these transforms for splat vectors.
Differential Revision: http://reviews.llvm.org/D21899
llvm-svn: 274696
2016-07-06 22:23:01 +00:00
Sanjay Patel
20ae98c731
add vector tests to show missing transform
...
llvm-svn: 274192
2016-06-30 00:09:13 +00:00
Sanjay Patel
0b87c76f5a
regenerate checks
...
llvm-svn: 274188
2016-06-29 23:58:39 +00:00
Matt Arsenault
b86b388e15
Convert tests to FileCheck
...
llvm-svn: 189529
2013-08-28 23:04:41 +00:00
Dan Gohman
c95df8b6d8
Use opt -S instead of piping bitcode output through llvm-dis.
...
llvm-svn: 81257
2009-09-08 22:34:10 +00:00
Dan Gohman
8d84372836
Change these tests to feed the assembly files to opt directly, instead
...
of using llvm-as, now that opt supports this.
llvm-svn: 81226
2009-09-08 16:50:01 +00:00
Reid Spencer
c49d7dd886
For PR1319:
...
Upgrade tests to work with new llvm.exp version of llvm_runtest.
llvm-svn: 36013
2007-04-14 20:13:02 +00:00
Reid Spencer
50ee6b8557
Remove use of implementation keyword.
...
llvm-svn: 35412
2007-03-28 02:38:26 +00:00
Reid Spencer
eebf90ce0b
Add test case for testing InstCombine with arbitrary precision integer
...
types. These tests mimic the integer test cases in the normal InstCombine
test suite but use "strange" integer bit widths.
Most tests written by Zhou Sheng, a few by me.
llvm-svn: 35284
2007-03-23 20:48:34 +00:00