Add indvar pass to canonicalization sequence
authorTobias Grosser <tobias@grosser.es>
Sat, 30 May 2015 06:16:41 +0000 (06:16 +0000)
committerTobias Grosser <tobias@grosser.es>
Sat, 30 May 2015 06:16:41 +0000 (06:16 +0000)
commit3e77d145631d250583669a73d690ee8b4f46617d
treee854f786bde86f214ab7866dbfa7966e856b9e5d
parent3bedf4407ba4d7ffc5eef2b42c1ab5da24600297
Add indvar pass to canonicalization sequence

Running indvar before Polly is useful as this eliminates zexts as they commonly
appear when a 32 bit induction variable (type int) was used on a 64 bit system.
These zexts confuse our delinearization and prevent for example the successful
delinearization of the nussinov kernel in polybench-c-4.1.

This fixes http://llvm.org/PR23426

Suggested-by: Xing Su <xsu.llvm@outlook.com>
llvm-svn: 238643
polly/lib/Transform/Canonicalization.cpp