Skip to content
This repository has been archived by the owner on Mar 27, 2022. It is now read-only.

Unhandled IR corner case #3

Open
ilgeco opened this issue Oct 23, 2020 · 0 comments
Open

Unhandled IR corner case #3

ilgeco opened this issue Oct 23, 2020 · 0 comments

Comments

@ilgeco
Copy link

ilgeco commented Oct 23, 2020

There is a problem when llvm IR generate an unnamed temporary value inside another llvm IR instruction
es:
result:
%tmp2.flt = load double, double* getelementptr inbounds ([100000 x double], [100000 x double]* @array, i64 0, i64 0), align 16, !taffo.initweight !14, !taffo.info !1
expected:
%tmp2.flt = load double, double* getelementptr inbounds ([100000 x double], [100000 x double]* @array.fixp, i64 0, i64 0), align 16, !taffo.initweight !14, !taffo.info !1

So when the instruction is converted FloatToFixed::fallback (here) is called
then a call to fallbackMatchValue (here) is performed which dosen't change the operand because TypeConversion is not set for the GEP
array.zip

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant