Outliner: add "target-cpu" feature from source function to outlined
authorTim Northover <tnorthover@apple.com>
Fri, 29 Jul 2022 13:39:44 +0000 (14:39 +0100)
committerTim Northover <tnorthover@apple.com>
Tue, 2 Aug 2022 08:33:29 +0000 (09:33 +0100)
commitb586dc21a7e8154a20fdf99da231c79dd762048f
tree1bf5613a994cb8ad6dfe9efdc86d7c515da8f7f9
parente208bab55fb11a69931a02dec8583a8ec5f94bbf
Outliner: add "target-cpu" feature from source function to outlined

The CPU is used to determine which inline asm instructions are allowed, so
needs to be copied across in case the outlined function contains any.
llvm/lib/CodeGen/TargetInstrInfo.cpp
llvm/test/CodeGen/AArch64/machine-outliner.ll