OSDN Git Service

[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)
commit99e15d01ed97edcdfeca21c77bd627c3dc693214
treee02da6b2b70371533838223a63b8032654d76d67
parent34c84f49d8938cb89cf1b5207bbff40ea419a415
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@287159 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/ImplicitNullChecks.cpp
test/CodeGen/X86/implicit-null-checks.mir