commit | 8ed68b36716ac6bbe3c15beecdf2d9524874b4e1 | [log] [tgz] |
---|---|---|
author | John Brawn <john.brawn@arm.com> | Mon Nov 27 11:29:15 2017 +0000 |
committer | John Brawn <john.brawn@arm.com> | Mon Nov 27 11:29:15 2017 +0000 |
tree | f0db8bf62b73bddd74fa358146b7ea92108b758a | |
parent | 7f70b1d68228d929de5a2601650abb81acc95322 [diff] |
[CGP] Fix handling of null pointer values in optimizeMemoryInst The current way that trivial addressing modes are detected incorrectly thinks that null pointers are non-trivial, leading to an infinite loop where we keep duplicating the same select. Fix this by aware of null when deciding if an addressing mode is trivial. Differential Revision: https://reviews.llvm.org/D40447 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@319019 91177308-0d34-0410-b5e6-96231b3b80d8