aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer
diff options
context:
space:
mode:
authorSebastian Neubauer <sebastian.neubauer@amd.com>2021-08-17 13:58:16 +0200
committerSebastian Neubauer <Sebastian.Neubauer@amd.com>2021-08-17 13:58:16 +0200
commitfbae34635d83c106f99ccd11a53305915929bb9a (patch)
treedd5b0671b84e69321682ac3088e7f2d8a34e13d8 /llvm/lib/Bitcode/Writer
parentfc5495c351a1f7ce28c7166a70113ce45906ff7b (diff)
downloadllvm-fbae34635d83c106f99ccd11a53305915929bb9a.zip
llvm-fbae34635d83c106f99ccd11a53305915929bb9a.tar.gz
llvm-fbae34635d83c106f99ccd11a53305915929bb9a.tar.bz2
[GlobalISel] Add combine for PTR_ADD with regbanks
Combine two G_PTR_ADDs, but keep the register bank of the constant. That way, the combine can be used in post-regbank-select combines. Introduce two helper methods in CombinerHelper, getRegBank and setRegBank that get and set an optional register bank to a register. That way, they can be used before and after register bank selection. Differential Revision: https://reviews.llvm.org/D103326
Diffstat (limited to 'llvm/lib/Bitcode/Writer')
0 files changed, 0 insertions, 0 deletions