commit | 8f7f7125e95e4fce29a4b8acbc88f708e7fae42f | [log] [tgz] |
---|---|---|
author | Evan Cheng <evan.cheng@apple.com> | Fri May 05 05:40:20 2006 +0000 |
committer | Evan Cheng <evan.cheng@apple.com> | Fri May 05 05:40:20 2006 +0000 |
tree | 58b00b6d6d5312528fe864094a62dec26efad595 | |
parent | 55c63257f31e2fa0b4a606f15d809cf615bc960c [diff] |
Better implementation of truncate. ISel matches it to a pseudo instruction that gets emitted as movl (for r32 to i16, i8) or a movw (for r16 to i8). And if the destination gets allocated a subregister of the source operand, then the instruction will not be emitted at all. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28119 91177308-0d34-0410-b5e6-96231b3b80d8