Move a sign-extend or a zero-extend of a load to the same basic block as the
authorBob Wilson <bob.wilson@apple.com>
Tue, 21 Sep 2010 21:54:27 +0000 (21:54 +0000)
committerBob Wilson <bob.wilson@apple.com>
Tue, 21 Sep 2010 21:54:27 +0000 (21:54 +0000)
commit71dc4d96ed39fadcdccf8c578d49a1afdae0c6ba
tree32e3d7ff834cf1c8df3b144e4556b39e268bffce
parent9120f5c35b756e0b9d7747616e97df8f30edfcc8
Move a sign-extend or a zero-extend of a load to the same basic block as the
load when the type of the load is not legal, even if truncates are not free.
The load is going to be legalized to an extending load anyway.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114488 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/CodeGenPrepare.cpp