[ImplicitNullChecks] Do not not handle call MachineInstrs
authorSanjoy Das <sanjoy@playingwithpointers.com>
Wed, 16 Nov 2016 21:45:22 +0000 (21:45 +0000)
committerSanjoy Das <sanjoy@playingwithpointers.com>
Wed, 16 Nov 2016 21:45:22 +0000 (21:45 +0000)
commitdf4b162e4dfab933873fed14f5dcc55574f85c1e
tree1aa357f15c3dc9221fb76f742e25069559f787cf
parent6fe867a8306a6f0a75f85ba9c68a89a67557e7b0
[ImplicitNullChecks] Do not not handle call MachineInstrs

We don't track callee clobbered registers correctly, so avoid hoisting
across calls.

Note: for this bug to trigger we need a `readonly` call target, since we
already have logic to not hoist across potentially storing instructions
either.

llvm-svn: 287159
llvm/lib/CodeGen/ImplicitNullChecks.cpp
llvm/test/CodeGen/X86/implicit-null-checks.mir