Andrew Trick | 0726926 | 2012-03-21 22:31:31 +0000 | [diff] [blame] | 1 | ; RUN: llc -march=x86-64 -mcpu=core2 -enable-misched -misched=shuffle -misched-bottomup < %s |
Andrew Trick | c6a19dd | 2012-03-21 04:12:19 +0000 | [diff] [blame] | 2 | ; |
| 3 | ; Interesting MachineScheduler cases. |
Lang Hames | 616c841 | 2012-03-29 19:54:28 +0000 | [diff] [blame^] | 4 | ; |
| 5 | ; FIXME: There should be an assert in the coalescer that we're not rematting |
| 6 | ; "not-quite-dead" copies, but that breaks a lot of tests <rdar://problem/11148682>. |
Andrew Trick | c6a19dd | 2012-03-21 04:12:19 +0000 | [diff] [blame] | 7 | |
| 8 | declare void @llvm.memcpy.p0i8.p0i8.i64(i8* nocapture, i8* nocapture, i64, i32, i1) nounwind |
| 9 | |
| 10 | ; From oggenc. |
| 11 | ; After coalescing, we have a dead superreg (RAX) definition. |
Andrew Trick | 0726926 | 2012-03-21 22:31:31 +0000 | [diff] [blame] | 12 | ; |
| 13 | ; CHECK: xorl %esi, %esi |
| 14 | ; CHECK: movl $32, %ecx |
| 15 | ; CHECK: rep;movsl |
Andrew Trick | c6a19dd | 2012-03-21 04:12:19 +0000 | [diff] [blame] | 16 | define fastcc void @_preextrapolate_helper() nounwind uwtable ssp { |
| 17 | entry: |
| 18 | br i1 undef, label %for.cond.preheader, label %if.end |
| 19 | |
| 20 | for.cond.preheader: ; preds = %entry |
| 21 | call void @llvm.memcpy.p0i8.p0i8.i64(i8* undef, i8* null, i64 128, i32 4, i1 false) nounwind |
| 22 | unreachable |
| 23 | |
| 24 | if.end: ; preds = %entry |
| 25 | ret void |
| 26 | } |