Add boolean simplification support from CMOV
authorMichael Liao <michael.liao@intel.com>
Mon, 10 Sep 2012 16:36:16 +0000 (16:36 +0000)
committerMichael Liao <michael.liao@intel.com>
Mon, 10 Sep 2012 16:36:16 +0000 (16:36 +0000)
commit7fdc66bf73150a33c4e7558be89126a30a63f3b6
tree915c887e84f26a0cdf7bc1b00b3363ab065f774c
parent8cd08bf4ac67b9d711fd1f72e6f5e00425d8c6ad
Add boolean simplification support from CMOV

- If a boolean value is generated from CMOV and tested as boolean value,
  simplify the use of test result by referencing the original condition.
  RDRAND intrinisc is one of such cases.

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