[PowerPC] Remove assertion "Shouldn't overwrite a register before it is killed"
authorYi-Hong Lyu <Yi-Hong.Lyu@ibm.com>
Fri, 11 Oct 2019 05:32:29 +0000 (05:32 +0000)
committerYi-Hong Lyu <Yi-Hong.Lyu@ibm.com>
Fri, 11 Oct 2019 05:32:29 +0000 (05:32 +0000)
commit2fbfb04ffef41eaeee1c60341d90d4b6a8ca816b
treec90b79132a7f840889841d9f6547eefc41bc01f6
parentc6c6f717af9fb38943cc0403be33678d32508932
[PowerPC] Remove assertion "Shouldn't overwrite a register before it is killed"

The assertion is everzealous and fail tests like:

  renamable $x3 = LI8 0
  STD renamable $x3, 16, $x1
  renamable $x3 = LI8 0

Remove the assertion since killed flag of $x3 is not mandentory.

Differential Revision: https://reviews.llvm.org/D68344

llvm-svn: 374515
llvm/lib/Target/PowerPC/PPCPreEmitPeephole.cpp
llvm/test/CodeGen/PowerPC/remove-redundant-load-imm.mir