[ForwardOpTree] Execute canForwardTree also in release builds.
authorMichael Kruse <llvm@meinersbur.de>
Tue, 1 Aug 2017 22:15:04 +0000 (22:15 +0000)
committerMichael Kruse <llvm@meinersbur.de>
Tue, 1 Aug 2017 22:15:04 +0000 (22:15 +0000)
commitfd350896890b904968d2c65c289c211bcdda0238
tree9bb3e14bfb24140a455bd91eb51493bbe65b3e0b
parentd89a1eb4fbd11e23cb01971199e6ba0b0717ddeb
[ForwardOpTree] Execute canForwardTree also in release builds.

Commit r309730 moved the call to canForwardTree into an assert(), even
though this function has side-effects if its DoIt parameter is true. To
avoid a warning in release builds, do an (void)Execution of its result
instead.

To avoid such confusion in the future, rename
canForwardTree() to forwardTree().

llvm-svn: 309753
polly/lib/Transform/ForwardOpTree.cpp