FailedChanges

Summary

  1. [TableGen][GlobalISel] Fix handling of zero_reg (details)
  2. [SCEV] Generalize SCEVParameterRewriter to accept SCEV expression as target. (details)
Commit c10200536f2ee3f29a7d2b82812e5d13b40fc3e4 by bjorn.a.pettersson
[TableGen][GlobalISel] Fix handling of zero_reg

When generating matching tables for GlobalISel, TableGen would output
"::zero_reg" whenever encountering the zero_reg, which in turn would
result in compilation error. This patch fixes that by instead outputting
NoRegister (== 0), which is the same result that TableGen produces when
generating matching tables for ISelDAG.

Reviewed By: arsenm

Differential Revision: https://reviews.llvm.org/D86215
The file was modifiedllvm/lib/Target/ARM/ARMInstructionSelector.cpp (diff)
The file was modifiedllvm/utils/TableGen/CodeGenTarget.h (diff)
The file was modifiedllvm/utils/TableGen/CodeGenTarget.cpp (diff)
The file was modifiedllvm/utils/TableGen/GlobalISelEmitter.cpp (diff)
The file was addedllvm/test/TableGen/GlobalISelEmitter-zero-reg.td
Commit 4635f6050b105f13138ca6d7a85ae797415803a0 by flo
[SCEV] Generalize SCEVParameterRewriter to accept SCEV expression as target.

This patch extends SCEVParameterRewriter to support rewriting unknown
epxressions to arbitrary SCEV expressions. It will be used by further
patches.

Reviewed By: reames

Differential Revision: https://reviews.llvm.org/D67176
The file was modifiedllvm/unittests/Analysis/ScalarEvolutionTest.cpp (diff)
The file was modifiedllvm/lib/Analysis/ScalarEvolutionDivision.cpp (diff)
The file was modifiedllvm/include/llvm/Analysis/ScalarEvolutionExpressions.h (diff)