This patch hoists addrspacecast in a global variable initializer to the
outermost possible level, so that NVPTXAsmPrinter can print it more likely
correctly.
Details
Details
- Reviewers
jholewinski eliben
Diff Detail
Diff Detail
Event Timeline
Comment Actions
outermost possible level, so that NVPTXAsmPrinter can print it more likely correctly.
You're just hiding a bug?
Comment Actions
Justin and I discussed this issue in http://reviews.llvm.org/D9063. The
conclusion is that, while Justin is working on a comprehensive fix which
can take a few days, I can workaround it by canonicalization as implemented
in this patch.
Anyway, this patch is incorrect because generic(<global var>+<const
offset>) is unacceptable by the NVIDIA driver. I already abandoned it.
Jingyue