[MachineBasicBlock] Refactor SplitCriticalEdge to expose a query API.
authorQuentin Colombet <qcolombet@apple.com>
Thu, 21 Apr 2016 20:46:27 +0000 (20:46 +0000)
committerQuentin Colombet <qcolombet@apple.com>
Thu, 21 Apr 2016 20:46:27 +0000 (20:46 +0000)
commit77e1878954638b144c1c35b0f8e7fce2d1680533
treebb43573b8a415aa3a8ef9f36932a4c10250df4b0
parentae605c1b0cc4faa39d0f4c514eb1b5e5dbb0c1b1
[MachineBasicBlock] Refactor SplitCriticalEdge to expose a query API.

Introduce canSplitCriticalEdge, so that clients can now query whether or
not a critical edge can be split without actually needing to split it.
This may be useful when gathering information for cost models for
instance.

llvm-svn: 267046
llvm/include/llvm/CodeGen/MachineBasicBlock.h
llvm/lib/CodeGen/MachineBasicBlock.cpp