[PATCH] D13792: Fix incorrect target triple in fp16-promote.ll

Vinicius Tinti via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 20 12:35:23 PDT 2015


tinti added a comment.

In http://reviews.llvm.org/D13792#268876, @rengolin wrote:

> Hi,
>
> This is weird, and I'd like to know more why the extra dash makes that big a difference...


It is because the "environment" is not parsed in the original case.
Thus Subtarget->isTargetAnything won't work because the "environment" is set to Unknown.

This is the environment parser:
http://llvm.org/docs/doxygen/html/Triple_8cpp_source.html#l00441

> cheers,

> --renato





http://reviews.llvm.org/D13792





More information about the llvm-commits mailing list