change RemoveAllocaPass from BasicBlockPass to FunctionPass