diff options
| author | Benjamin Kramer <benny.kra@googlemail.com> | 2013-09-20 14:38:44 +0000 |
|---|---|---|
| committer | Benjamin Kramer <benny.kra@googlemail.com> | 2013-09-20 14:38:44 +0000 |
| commit | 4c332fa5a5a650cd779935d78b505f84cef4db69 (patch) | |
| tree | 5214ed46cdcf9af5d90465acdd5109568517810d /lib/Bitcode/Reader/BitcodeReader.cpp | |
| parent | 86075251108afff556420effa670e7d07b203555 (diff) | |
| download | llvm-4c332fa5a5a650cd779935d78b505f84cef4db69.tar.gz llvm-4c332fa5a5a650cd779935d78b505f84cef4db69.tar.bz2 llvm-4c332fa5a5a650cd779935d78b505f84cef4db69.tar.xz | |
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
Diffstat (limited to 'lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions
