[X86] Constant folding of adds/subs intrinsics
authorTomasz Krupa <tomasz.krupa@intel.com>
Tue, 14 Aug 2018 09:04:01 +0000 (09:04 +0000)
committerTomasz Krupa <tomasz.krupa@intel.com>
Tue, 14 Aug 2018 09:04:01 +0000 (09:04 +0000)
commite766e5f6366147953d22512d12006aa18b1c7ece
treea39d9a571f52805dc8f7d282cdda194dfd07a123
parent3e3f7552eb5b400be026ce365e1abbfc7767022c
[X86] Constant folding of adds/subs intrinsics

Summary: This adds constant folding of signed add/sub with saturation intrinsics.

Reviewers: craig.topper, spatel, RKSimon, chandlerc, efriedma

Reviewed By: craig.topper

Subscribers: rnk, llvm-commits

Differential Revision: https://reviews.llvm.org/D50499

llvm-svn: 339659
llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
llvm/test/Transforms/InstCombine/X86/x86-adds-subs.ll [new file with mode: 0644]