[PATCH] D110527: [llvm-reduce] Add MIR support.
Bjorn Pettersson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 10 10:24:33 PST 2021
bjope added a comment.
In D110527#3121935 <https://reviews.llvm.org/D110527#3121935>, @reames wrote:
> In D110527#3121915 <https://reviews.llvm.org/D110527#3121915>, @bjope wrote:
>
>> The IR part can often be eliminated from a MIR based test case. But sure, one could argue that when running llvm-reduce it could be mandatory to add an IR section in the .mir file first (but then I think one needs to also add the function prototype).
>
> I can maybe see this as an argument for allowing override of the triple, but not as an argument for not defaulting to the triple if present. Frankly, I find even the override case unconvincing.
Yes. If there is a target triple in the IR then overriding it might be weird. I don't remember exactly how it works in llc, but as a user I guess I'd probably would assume that the behavior would be the same between the tools when using cl option vs having the triple in the IR, or having both.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D110527/new/
https://reviews.llvm.org/D110527
More information about the llvm-commits
mailing list