The current code really tries hard to use getNewScalarValue(), which checks if
not the original value, but a possible copy or demoted value needs to be stored.
In this calling context it seems, that we _always_ use the ScalarValue that
comes form the incoming PHI node, but never any other value. As also no test
cases fail, it seems right to just drop this call to getNewScalarValue and
remove the parameters that are not needed any more.
Details
Details
- Reviewers
jdoerfert - Commits
- rGf961e755b1a9: [OpenCL] Improve diagnostics detecting implicit vector conversion.
rG655a4570cd8f: createScalarInitialization: Always store PHI-node value
rPLO246389: createScalarInitialization: Always store PHI-node value
rC246393: [OpenCL] Improve diagnostics detecting implicit vector conversion.
rL246393: [OpenCL] Improve diagnostics detecting implicit vector conversion.
rL246389: createScalarInitialization: Always store PHI-node value
Diff Detail
Diff Detail
Event Timeline
Comment Actions
I am unsure and haven't tested it but don't we have to go back if we want to support parallel code generation?