diff options
author | Erik Verbruggen <erikjv@me.com> | 2014-03-27 11:16:05 +0000 |
---|---|---|
committer | Erik Verbruggen <erikjv@me.com> | 2014-03-27 11:16:05 +0000 |
commit | 668c2aa51740da56f26a7488348362916fc77b2c (patch) | |
tree | 3e2d62ac54468fc0bb064a17451ea2d84ae5490b /unittests/IR/InstructionsTest.cpp | |
parent | 5fa6dffd30c24f82a615cf7d2e17252974c4b4eb (diff) | |
download | llvm-668c2aa51740da56f26a7488348362916fc77b2c.tar.gz llvm-668c2aa51740da56f26a7488348362916fc77b2c.tar.bz2 llvm-668c2aa51740da56f26a7488348362916fc77b2c.tar.xz |
InstCombine: merge constants in both operands of icmp.
Transform:
icmp X+Cst2, Cst
into:
icmp X, Cst-Cst2
when Cst-Cst2 does not overflow, and the add has nsw.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204912 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/IR/InstructionsTest.cpp')
0 files changed, 0 insertions, 0 deletions