Canonicalize bitcasts between types like <1 x i64> and i64 to
authorEli Friedman <eli.friedman@gmail.com>
Sat, 18 Jul 2009 23:06:53 +0000 (23:06 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Sat, 18 Jul 2009 23:06:53 +0000 (23:06 +0000)
commit2451a64687b52fdc04d5ec5ffc2bfbbfcae19ea7
tree20a4be9608d98dd8b8252a0688761ecf6a859203
parent4cb1e13769856716261a4d315f8202bd918502c3
Canonicalize bitcasts between types like <1 x i64> and i64 to
insertelement/extractelement.

I'm not entirely sure this is precisely what we want to do: should we
prefer bitcast(insertelement) or insertelement(bitcast)?  Similarly. should we
prefer extractelement(bitcast) or bitcast(extractelement)?

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76345 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/InstructionCombining.cpp
test/Transforms/InstCombine/bitcast-vec-canon.ll [new file with mode: 0644]