aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
diff options
context:
space:
mode:
authorValentin Churavy <v.churavy@gmail.com>2020-12-07 16:13:57 -0500
committerValentin Churavy <v.churavy@gmail.com>2020-12-07 20:19:48 -0500
commit700cf7dcc927c0ffddc0a1acbfde490f673ffb4a (patch)
treeb09413bc40fb19a6b277b8e320de0a60ea52bdfc /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
parentefc063b621ea0c4d1e452bcade62f7fc7e1cc937 (diff)
downloadllvm-700cf7dcc927c0ffddc0a1acbfde490f673ffb4a.zip
llvm-700cf7dcc927c0ffddc0a1acbfde490f673ffb4a.tar.gz
llvm-700cf7dcc927c0ffddc0a1acbfde490f673ffb4a.tar.bz2
[VNCoercion] Disallow coercion between different ni addrspaces
I'm not sure if it would be legal by the IR reference to introduce an addrspacecast here, since the IR reference is a bit vague on the exact semantics, but at least for our usage of it (and I suspect for many other's usage) it is not. For us, addrspacecasts between non-integral address spaces carry frontend information that the optimizer cannot deduce afterwards in a generic way (though we have frontend specific passes in our pipline that do propagate these). In any case, I'm sure nobody is using it this way at the moment, since it would have introduced inttoptrs, which are definitely illegal. Fixes PR38375 Co-authored-by: Keno Fischer <keno@alumni.harvard.edu> Reviewed By: reames Differential Revision: https://reviews.llvm.org/D50010
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
0 files changed, 0 insertions, 0 deletions