diff options
| author | Juergen Ributzka <juergen@apple.com> | 2014-07-30 22:04:28 +0000 |
|---|---|---|
| committer | Juergen Ributzka <juergen@apple.com> | 2014-07-30 22:04:28 +0000 |
| commit | fa1d61e6c36ca292efe60f3b3ccd336fcf71f9ca (patch) | |
| tree | 55fe9b09c99791f22295f3b9e9ff2c68e351dce7 /llvm/lib/Target/X86 | |
| parent | ad3b09037dc88ea514ce061b57f4132a01a0b3ef (diff) | |
| download | bcm5719-llvm-fa1d61e6c36ca292efe60f3b3ccd336fcf71f9ca.tar.gz bcm5719-llvm-fa1d61e6c36ca292efe60f3b3ccd336fcf71f9ca.zip | |
[FastISel] Move the helper function isCommutativeIntrinsic into FastISel base class.
Move the helper function isCommutativeIntrinsic into the FastISel base class,
so it can be used by more than just one backend.
llvm-svn: 214347
Diffstat (limited to 'llvm/lib/Target/X86')
| -rw-r--r-- | llvm/lib/Target/X86/X86FastISel.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/llvm/lib/Target/X86/X86FastISel.cpp b/llvm/lib/Target/X86/X86FastISel.cpp index 2d494b4aeeb..52e65670a50 100644 --- a/llvm/lib/Target/X86/X86FastISel.cpp +++ b/llvm/lib/Target/X86/X86FastISel.cpp @@ -2163,18 +2163,6 @@ bool X86FastISel::TryEmitSmallMemcpy(X86AddressMode DestAM, return true; } -static bool isCommutativeIntrinsic(IntrinsicInst const *II) { - switch (II->getIntrinsicID()) { - case Intrinsic::sadd_with_overflow: - case Intrinsic::uadd_with_overflow: - case Intrinsic::smul_with_overflow: - case Intrinsic::umul_with_overflow: - return true; - default: - return false; - } -} - bool X86FastISel::FastLowerIntrinsicCall(const IntrinsicInst *II) { // FIXME: Handle more intrinsics. switch (II->getIntrinsicID()) { |

