[Hexagon] segv while processing SUnit with nullNodePtr
authorRon Lieberman <ronl@codeaurora.org>
Sat, 17 Sep 2016 16:21:09 +0000 (16:21 +0000)
committerRon Lieberman <ronl@codeaurora.org>
Sat, 17 Sep 2016 16:21:09 +0000 (16:21 +0000)
commitda5df7c99ed402cb8a9ae3c54abbbe72eeafdc6a
tree6a925f5222b0a45ed65236c90a9195823debf515
parentac0fc849cf53b41735526eba7931ee4f3508fb8f
[Hexagon] segv while processing SUnit with nullNodePtr

Added BoundaryNode check to isBestZeroLatency function.

llvm-svn: 281825
llvm/lib/Target/Hexagon/HexagonSubtarget.cpp
llvm/test/CodeGen/Hexagon/SUnit-boundary-prob.ll [new file with mode: 0644]