[llvm-dev] Condition removed? Difference between LLVM and GCC on a small testcase

Mehdi AMINI via llvm-dev llvm-dev at lists.llvm.org
Fri Mar 1 17:30:36 PST 2019


On Fri, Mar 1, 2019 at 4:18 PM Yan Luo via llvm-dev <llvm-dev at lists.llvm.org>
wrote:

> Tim,
>
> Thanks for the reply! It makes sense that LLVM selects a*51 or a*58 for an
> undefined value although it makes the arguments to bar() "predictable".
>

It seems like undefined behavior to me right? So we could even eliminate
the call to bar() entirely (making it even more "predictable" ;))

-- 
Mehdi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190301/1ee2caf2/attachment.html>


More information about the llvm-dev mailing list