aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineScheduler.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2020-07-26 10:57:59 -0700
committerCraig Topper <craig.topper@intel.com>2020-07-26 12:19:08 -0700
commitdf12524e6ba02d3eda975de4541f55e151074b07 (patch)
tree4a797ae599662aee022f611b9246f2d611911d3a /llvm/lib/CodeGen/MachineScheduler.cpp
parent7454acdf3b7d064ebbf6b8027296f42f504b285a (diff)
downloadllvm-df12524e6ba02d3eda975de4541f55e151074b07.zip
llvm-df12524e6ba02d3eda975de4541f55e151074b07.tar.gz
llvm-df12524e6ba02d3eda975de4541f55e151074b07.tar.bz2
[X86] Turn X86DAGToDAGISel::tryVPTERNLOG into a fully custom instruction selector that can handle bitcasts between logic ops
Previously we just matched the logic ops and replaced with an X86ISD::VPTERNLOG node that we would send through the normal pattern match. But that approach couldn't handle a bitcast between the logic ops. Extending that approach would require us to peek through the bitcasts and emit new bitcasts to match the types. Those new bitcasts would then have to be properly topologically sorted. This patch instead switches to directly emitting the MachineSDNode and skips the normal tablegen pattern matching. We do have to handle load folding and broadcast load folding ourselves now. Which also means commuting the immediate control. Reviewed By: RKSimon Differential Revision: https://reviews.llvm.org/D83630
Diffstat (limited to 'llvm/lib/CodeGen/MachineScheduler.cpp')
0 files changed, 0 insertions, 0 deletions