Generalize the "trunc(ptrtoint(x)) - trunc(ptrtoint(y)) ->
authorDuncan Sands <baldrick@free.fr>
Tue, 13 Mar 2012 14:07:05 +0000 (14:07 +0000)
committerDuncan Sands <baldrick@free.fr>
Tue, 13 Mar 2012 14:07:05 +0000 (14:07 +0000)
commitbd0fe5642544d4ec3aee1ede7af60c006bae5cbf
treed45f0f6639dd84e8c9d8ac651d4a77ccdb46e2e7
parentc347b6f4b600368751f6f79d270bf58f7d54a348
Generalize the "trunc(ptrtoint(x)) - trunc(ptrtoint(y)) ->
trunc(ptrtoint(x-y))" optimization introduced by Chandler.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152626 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/InstructionSimplify.h
lib/Analysis/InstructionSimplify.cpp
test/Transforms/InstSimplify/reassociate.ll