Commits

Arnold Schwaighofer committed 6662e7432ad
Reapply Add a pass to propagate constant array values to array subscript calls This reverts commit 82ff59c0b98a23cf332c0c274b581eacc029b49b. Original commit message: This allows us to compile the function: func valueArray() -> Int{ var a = [1,2,3] var r = a[0] + a[1] + a[2] return r } Down to just a return of the value 6. And should eventually allow us to remove the overhead of vararg calls. rdar://19958821