summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/fast-isel-trunc-kill-subreg.ll
Commit message (Collapse)AuthorAgeFilesLines
* [X86] Fast-ISel was incorrectly always killing the source of a truncate.Pete Cooper2015-05-081-0/+40
A trunc from i32 to i1 on x86_64 generates an instruction such as %vreg19<def> = COPY %vreg9:sub_8bit<kill>; GR8:%vreg19 GR32:%vreg9 However, the copy here should only have the kill flag on the 32-bit path, not the 64-bit one. Otherwise, we are killing the source of the truncate which could be used later in the program. llvm-svn: 236890
OpenPOWER on IntegriCloud