Commit Graph

2 Commits

Author SHA1 Message Date
Andrew Trick
60b39024fa LoopRotate: canonicalize Struct BB args after UpdateSSA.
Without this, IndvarAnalysis can spuriously fail.

Roughly:
%i0 = integer_literal
%s0 = struct %i0
br (%i0, %s0)

bb(%i1, %s1)

Becomes:
%i0 = integer_literal
br (%i0)

bb(%i1)
%s0 = struct %i1

Swift SVN r23606
2014-12-02 01:07:46 +00:00
Arnold Schwaighofer
6466da193f Add a SILSSAUpdate utility
This is using LLVM's SSAUpdater utility.

I had to abstract it a little further because our 'phi' nodes are slightly
different. The SSAUpdater needs to iterate over phis in a basic block so I
abstracted this in a trait. Therefore, this commit needs a recent version of
puzzle/master which has this change applied.

Swift SVN r19634
2014-07-07 21:05:22 +00:00