canAvoidElementLoad and canAvoidLoad were incorrectly
eliding loads when an index expression is used as an
another array index expression. This led to a panic.
See comments on https://github.com/go-llvm/llgo/issues/175
Differential D6676
[llgo] irgen: fix canAvoid* ClosedPublic Authored by axw on Dec 16 2014, 1:32 AM.
Details
Summary canAvoidElementLoad and canAvoidLoad were incorrectly See comments on https://github.com/go-llvm/llgo/issues/175
Diff Detail Event Timelineaxw updated this object.
axw added inline comments. This revision is now accepted and ready to land.Dec 16 2014, 7:15 PM Comment Actions Please do ask for it (http://llvm.org/docs/DeveloperPolicy.html#obtaining-commit-access). In the meantime, I've committed this for you. Closed by commit rL224420: irgen: fix canAvoid* (authored by pcc). · Explain WhyDec 17 2014, 1:46 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 17376 irgen/ssa.go
test/irgen/avoidload.go
|
Can you leave the // ok comment here? This would make it a little clearer that we intend to accept the referrer rather than falling through.