commit | 33bfd3f57755fc81fb2102cd64de76bb415ba586 | [log] [tgz] |
---|---|---|
author | Hongbin Zheng <etherzhhb@gmail.com> | Fri Sep 29 16:32:12 2017 +0000 |
committer | Hongbin Zheng <etherzhhb@gmail.com> | Fri Sep 29 16:32:12 2017 +0000 |
tree | a23e7bd0be130553d4abb2c7308af5647dd9d774 | |
parent | 80d2bc6c37270dfb49dfa71e4426e61827972410 [diff] |
[SimplifyIndVar] Do not fail when we constant fold an IV user to ConstantPointerNull The type of a SCEVConstant may not match the corresponding LLVM Value. In this case, we skip the constant folding for now. TODO: Replace ConstantInt Zero by ConstantPointerNull git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@314531 91177308-0d34-0410-b5e6-96231b3b80d8