diff options
| author | Pete Cooper <peter_cooper@apple.com> | 2015-05-08 18:29:42 +0000 |
|---|---|---|
| committer | Pete Cooper <peter_cooper@apple.com> | 2015-05-08 18:29:42 +0000 |
| commit | 7f7c9f1dad9364c97eb43ac649c5fffd6d4f7dbd (patch) | |
| tree | 6704e7ed5221aa546d2906364ee237724b0adaf2 /llvm/lib/Support/TargetParser.cpp | |
| parent | 396441c8734d083ff70bdd866f3305f38fef35a9 (diff) | |
| download | llvm-7f7c9f1dad9364c97eb43ac649c5fffd6d4f7dbd.zip llvm-7f7c9f1dad9364c97eb43ac649c5fffd6d4f7dbd.tar.gz llvm-7f7c9f1dad9364c97eb43ac649c5fffd6d4f7dbd.tar.bz2 | |
[X86] Fast-ISel was incorrectly always killing the source of a truncate.
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
Diffstat (limited to 'llvm/lib/Support/TargetParser.cpp')
0 files changed, 0 insertions, 0 deletions
