]> granicus.if.org Git - llvm/commit
[SimplifyCFG] Add "safe abs" test from CMSIS DSP 'abs_with_clamp()'
authorRoman Lebedev <lebedev.ri@gmail.com>
Wed, 14 Aug 2019 13:10:59 +0000 (13:10 +0000)
committerRoman Lebedev <lebedev.ri@gmail.com>
Wed, 14 Aug 2019 13:10:59 +0000 (13:10 +0000)
commitc567852d276b30dde50ae380d4e1d6665aebd112
treedce739f8b4f4f2e0ec1eb5704269cd7cc198fccf
parent837b943b42fad6718a668416dd2be0bc2095da41
[SimplifyCFG] Add "safe abs" test from CMSIS DSP 'abs_with_clamp()'

With -phi-node-folding-threshold=3
this branch would get flattened into select.

See https://reviews.llvm.org/D65148#1629010

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368847 91177308-0d34-0410-b5e6-96231b3b80d8
test/Transforms/SimplifyCFG/safe-abs.ll [new file with mode: 0644]