Bitcasts are transitive. Bitcast-Bitcast-X becomes Bitcast-X.
authorNadav Rotem <nadav.rotem@intel.com>
Sun, 28 Aug 2011 11:51:08 +0000 (11:51 +0000)
committerNadav Rotem <nadav.rotem@intel.com>
Sun, 28 Aug 2011 11:51:08 +0000 (11:51 +0000)
commitbe6ceb6ebcfb48e09ffab297c1537c87383f0ce9
treee05e876a1b8886b72f3abe66192ec5fdcbfe0cfa
parentb1b051ec97c4e3c02cea554e169cbb4f85bcb2de
Bitcasts are transitive. Bitcast-Bitcast-X becomes Bitcast-X.

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