summaryrefslogtreecommitdiff
path: root/lib/Bitcode/Writer/BitcodeWriterPass.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2013-09-20 14:38:44 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2013-09-20 14:38:44 +0000
commit4c332fa5a5a650cd779935d78b505f84cef4db69 (patch)
tree5214ed46cdcf9af5d90465acdd5109568517810d /lib/Bitcode/Writer/BitcodeWriterPass.cpp
parent86075251108afff556420effa670e7d07b203555 (diff)
downloadllvm-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/Writer/BitcodeWriterPass.cpp')
0 files changed, 0 insertions, 0 deletions