Skip to content

Commit 700fdb1

Browse files
committedMay 30, 2019
[NFC][Codegen] Add better test coverage for potential add/sub constant folding
This adds hopefully-full test coverage for all the possible permutations: First op is one of: * x + c1 * x - c1 * c1 - x Second op is one of: * + c2 * - c2 * c2 - And thus 3*3=9 patterns. Some of them show missed constant-folds. Without previous patch (the revert), these tests were causing endless dagcombine loop. I really should have thought about this first :S llvm-svn: 362110
1 parent 019d270 commit 700fdb1

File tree

4 files changed

+1112
-292
lines changed

4 files changed

+1112
-292
lines changed
 

0 commit comments

Comments
 (0)
Please sign in to comment.