Give the rdrand instructions a SideEffect flag and a chain so MachineCSE and MachineL...
authorBenjamin Kramer <benny.kra@googlemail.com>
Thu, 12 Jul 2012 18:14:57 +0000 (18:14 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Thu, 12 Jul 2012 18:14:57 +0000 (18:14 +0000)
commitfeae00a68e819e661ff6fddd15be703670247c10
treecab546b1b03848f0ea7143a526b146ebf60ac397
parentfc3f0b5c910cd60bb2d7cf6a882fd60e456df723
Give the rdrand instructions a SideEffect flag and a chain so MachineCSE and MachineLICM don't touch it.

I already had the necessary things in place for IR-level passes but missed the machine passes.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160137 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
lib/Target/X86/X86InstrInfo.td
test/CodeGen/X86/rdrand.ll