[SelectionDAG] Support promotion of PREFETCH operands
authorAlex Bradbury <asb@lowrisc.org>
Fri, 30 Nov 2018 10:06:31 +0000 (10:06 +0000)
committerAlex Bradbury <asb@lowrisc.org>
Fri, 30 Nov 2018 10:06:31 +0000 (10:06 +0000)
commitbd24c7b045646f59f1fbf3298a2caab972726af4
treea1a26f325de498ed49927c7f9dbc03e967920135
parent9cf417db7879c7d8fe3745a8c03517cd4d0f9f15
[SelectionDAG] Support promotion of PREFETCH operands

For targets where i32 is not a legal type (e.g. 64-bit RISC-V),
LegalizeIntegerTypes must promote the operands of ISD::PREFETCH.

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

llvm-svn: 347980
llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.h
llvm/test/CodeGen/RISCV/prefetch.ll [new file with mode: 0644]