OSDN Git Service

Fixes following the CR by Chris and Duncan:
authorNadav Rotem <nadav.rotem@intel.com>
Mon, 29 Aug 2011 19:58:36 +0000 (19:58 +0000)
committerNadav Rotem <nadav.rotem@intel.com>
Mon, 29 Aug 2011 19:58:36 +0000 (19:58 +0000)
commit89879ec76b5d81b0cc82e9f402dfe7c4cc63b0d6
tree63b76e1c8cfe9857bd47b0b7aa99da40baace8dd
parent0da10cf44d0f22111dae728bb535ade2283d976b
Fixes following the CR by Chris and Duncan:

Optimize chained bitcasts of the form A->B->A.
Undo r138722 and change isEliminableCastPair to allow this case.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138756 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ConstantFolding.cpp
lib/Transforms/InstCombine/InstCombineCasts.cpp
lib/VMCore/Instructions.cpp
test/Transforms/InstCombine/cast.ll