[X86] Add a simple hack to IsProfitableToFold to prevent vselect+strict fp operations...
authorCraig Topper <craig.topper@intel.com>
Wed, 18 Dec 2019 22:24:20 +0000 (14:24 -0800)
committerCraig Topper <craig.topper@intel.com>
Wed, 18 Dec 2019 22:42:56 +0000 (14:42 -0800)
commitf0df4218b67d0abe96867804b8932b9b88998f51
tree9b5fd2d7f5ca195edc96855901ed5cf68c9dd062
parent6bf7c345f82a06107a541db80f1ae128844c307c
[X86] Add a simple hack to IsProfitableToFold to prevent vselect+strict fp operations from being folded into masked instructions.

We really need to update the isel patterns to prevent this, but
that requires some tablegen de-tangling. So this hack will work
for correctness in the short term.
llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
llvm/test/CodeGen/X86/vector-constrained-fp-intrinsics.ll