Benjamin Kramer 4c332fa5a5 InstCombine: Canonicalize (gep i8* X, -(ptrtoint Y)) to (sub (ptrtoint X), (ptrtoint Y))
The GEP pattern is what SCEV expander emits for "ugly geps". The latter is what
you get for pointer subtraction in C code. The rest of instcombine already
knows how to deal with that so just canonicalize on that.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191090 91177308-0d34-0410-b5e6-96231b3b80d8
2013-09-20 14:38:44 +00:00
..
2013-08-28 23:04:41 +00:00
2013-07-09 07:50:59 +00:00
2013-08-28 23:04:41 +00:00
2013-07-09 22:01:22 +00:00
2013-08-12 12:43:26 +00:00
2013-08-19 21:40:31 +00:00
2013-02-16 23:41:36 +00:00
2013-08-28 23:04:41 +00:00
2013-08-21 19:53:10 +00:00
2013-08-28 23:04:41 +00:00
2013-08-28 23:04:41 +00:00
2013-03-28 19:34:14 +00:00

This directory contains test cases for the instcombine transformation.  The
dated tests are actual bug tests, whereas the named tests are used to test
for features that the this pass should be capable of performing.