efriedma added inline comments.
================
Comment at: clang/lib/CodeGen/CGExprScalar.cpp:2120
+ } else
+ Addr = EmitLValue(E).getAddress(CGF);
Addr = Builder.CreateElementBitCast(Addr, CGF.ConvertTypeForMem(DestTy));
----------------
I don't think it's legal to use EmitLValue here at all; the emitted IR could
have side-effects.
Since we have the vector insert/extract intrinsics now, can we just use them
here instead of going through the load/store dance?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D105097/new/
https://reviews.llvm.org/D105097
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits