[llvm-bugs] [Bug 45084] LLVM misses conversion of load of select between pointers-to-constants into select between constants

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Mar 10 09:40:19 PDT 2020


https://bugs.llvm.org/show_bug.cgi?id=45084

Eli Friedman <efriedma at quicinc.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #6 from Eli Friedman <efriedma at quicinc.com> ---
There's a semantic difference between the C rules and the C++ rules for
conditional operators. The result in C is always an rvalue; the result in C++
can be an lvalue.  The generated code reflects the difference in lowering for
lvalue conditional vs. rvalue conditional .

I guess we could try to reduce the number of memcpy calls we generate for
rvalue conditionals, if both operands are lvalue-ish.  But that doesn't really
seem like a priority.  So I'm just going to mark this fixed.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200310/a03d194d/attachment.html>


More information about the llvm-bugs mailing list