diff options
| author | Craig Topper <craig.topper@intel.com> | 2018-07-28 00:27:25 +0000 |
|---|---|---|
| committer | Craig Topper <craig.topper@intel.com> | 2018-07-28 00:27:25 +0000 |
| commit | 50b1d4303d0e710007bc2ebc895a378e53204400 (patch) | |
| tree | d490fef34a7494321498866f9a42f60f3744c601 /clang/lib/CodeGen/CodeGenModule.cpp | |
| parent | 5666c7e4bd629bb6329cf8ac498507ef7bef673c (diff) | |
| download | llvm-50b1d4303d0e710007bc2ebc895a378e53204400.zip llvm-50b1d4303d0e710007bc2ebc895a378e53204400.tar.gz llvm-50b1d4303d0e710007bc2ebc895a378e53204400.tar.bz2 | |
[DAGCombiner] Teach DAG combiner that A-(B-C) can be folded to A+(C-B)
This can be useful since addition is commutable, and subtraction is not.
This matches a transform that is also done by InstCombine.
llvm-svn: 338181
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions
