llvm-project/llvm/lib/Transforms
Sanjay Patel 3cd1aa88f9 [InstCombine] fold another shifty abs pattern to cmp+sel (PR36036)
The bug report:
https://bugs.llvm.org/show_bug.cgi?id=36036

...requests a DAG change for this, but an IR canonicalization
probably handles most cases. If we still want to match this
pattern in the backend, there's a proposal for that too:
D47831

Alive proofs including nsw/nuw cases that were first noted in:
D46988

https://rise4fun.com/Alive/Kmp

This patch is largely copied from the existing code that was
initially added with:
D40984
...but I didn't see much gain from trying to share code.

llvm-svn: 334137
2018-06-06 21:58:12 +00:00
..
AggressiveInstCombine Move Analysis/Utils/Local.h back to Transforms 2018-06-04 21:23:21 +00:00
Coroutines Move Analysis/Utils/Local.h back to Transforms 2018-06-04 21:23:21 +00:00
Hello
IPO Move Analysis/Utils/Local.h back to Transforms 2018-06-04 21:23:21 +00:00
InstCombine [InstCombine] fold another shifty abs pattern to cmp+sel (PR36036) 2018-06-06 21:58:12 +00:00
Instrumentation Move Analysis/Utils/Local.h back to Transforms 2018-06-04 21:23:21 +00:00
ObjCARC Move Analysis/Utils/Local.h back to Transforms 2018-06-04 21:23:21 +00:00
Scalar Move Analysis/Utils/Local.h back to Transforms 2018-06-04 21:23:21 +00:00
Utils Move Analysis/Utils/Local.h back to Transforms 2018-06-04 21:23:21 +00:00
Vectorize Move Analysis/Utils/Local.h back to Transforms 2018-06-04 21:23:21 +00:00
CMakeLists.txt Another try to commit 323321 (aggressive instruction combine). 2018-01-25 12:06:32 +00:00
LLVMBuild.txt Another try to commit 323321 (aggressive instruction combine). 2018-01-25 12:06:32 +00:00