teach codegen to turn trunc(zextload) into load when possible.
authorChris Lattner <sabre@nondot.org>
Thu, 15 Apr 2010 05:40:59 +0000 (05:40 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 15 Apr 2010 05:40:59 +0000 (05:40 +0000)
commit6dc868581b20380802e6a011de8dd9766790cf7a
tree2ef2b13ce6f4a84ece6070c2f97bc29d0ed66000
parentefcddc33256512a08d7182783e2262da27f27cdd
teach codegen to turn trunc(zextload) into load when possible.
This doesn't occur much at all, it only seems to formed in the case
when the trunc optimization kicks in due to phase ordering.  In that
case it is saves a few bytes on x86-32.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101350 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/X86/store-narrow.ll