The Tate conjecture and semisimplicity of Galois representation