]> granicus.if.org Git - llvm/commit
[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)
commit1a69f7be23c3818fddb0680cb28d66d1b080f8f9
treec4d98ed23bc2903b62d3401569a10bcd492f0bca
parentdba760b967f743aa8fc54931f764bbd803b9fdda
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@374515 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCPreEmitPeephole.cpp
test/CodeGen/PowerPC/remove-redundant-load-imm.mir