[all-commits] [llvm/llvm-project] a56d05: [PowerPC] Do not assume operand of ADDI is an imme...

Nemanja Ivanovic via All-commits all-commits at lists.llvm.org
Sun Jun 7 20:19:19 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: a56d057dfe3127c111c3470606c04e96d35b1fa3
      https://github.com/llvm/llvm-project/commit/a56d057dfe3127c111c3470606c04e96d35b1fa3
  Author: Nemanja Ivanovic <nemanja.i.ibm at gmail.com>
  Date:   2020-06-07 (Sun, 07 Jun 2020)

  Changed paths:
    M llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
    A llvm/test/CodeGen/PowerPC/pr45432.ll

  Log Message:
  -----------
  [PowerPC] Do not assume operand of ADDI is an immediate

After pseudo-expansion, we may end up with ADDI (add immediate)
instructions where the operand is not an immediate but a relocation.
For such instructions, attempts to get the immediate result in
assertion failures for obvious reasons.

Fixes: https://bugs.llvm.org/show_bug.cgi?id=45432




More information about the All-commits mailing list