diff options
author | Shuxin Yang <shuxin.llvm@gmail.com> | 2012-11-12 19:34:11 +0000 |
---|---|---|
committer | Shuxin Yang <shuxin.llvm@gmail.com> | 2012-11-12 19:34:11 +0000 |
commit | 1c442f5ec6823c7b736863fc74f8b9e2f982f182 (patch) | |
tree | b227b6ebc7d0d03e669665ea3af546a2bb55f6bf /llvm/lib/CodeGen/MachineScheduler.cpp | |
parent | 6bffd6fe81d8bd4888323ba5f302e277001e43a3 (diff) | |
download | llvm-1c442f5ec6823c7b736863fc74f8b9e2f982f182.zip llvm-1c442f5ec6823c7b736863fc74f8b9e2f982f182.tar.gz llvm-1c442f5ec6823c7b736863fc74f8b9e2f982f182.tar.bz2 |
This change is to fix rdar://12571717 which is about assertion in Reassociate pass.
The assertion is trigged when the Reassociater tries to transform expression
... + 2 * n * 3 + 2 * m + ...
into:
... + 2 * (n*3 + m).
In the process of the transformation, a helper routine folds the constant 2*3 into 6,
confusing optimizer which is trying the to eliminate the common factor 2, and cannot
find 2 any more.
Review is pending. But I'd like commit first in order to help those who are waiting
for this fix.
llvm-svn: 167740
Diffstat (limited to 'llvm/lib/CodeGen/MachineScheduler.cpp')
0 files changed, 0 insertions, 0 deletions