commit | 1cfbb6358c2fc6c6cdf1a012c64cf23d3f859662 | [log] [tgz] |
---|---|---|
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | Tue Aug 19 01:12:53 2014 +0000 |
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | Tue Aug 19 01:12:53 2014 +0000 |
tree | 91dcd5c1f62021a6d1d747869cb570f29ab4367e | |
parent | fe0bf8fbf9d401a67a1842da6cefbb58aa8975a3 [diff] |
IR: Reduce RAUW traffic in ConstantExpr Avoid RAUW-ing `ConstantExpr` when an operand changes unless the new `ConstantExpr` already has users. This prevents the RAUW from rippling up the expression tree unnecessarily. This commit indirectly adds test coverage for r215953 (this is how I came across the bug). This is part of PR20515. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@215960 91177308-0d34-0410-b5e6-96231b3b80d8