[PATCH] D55876: [LIR] Add CTTZ support
Yuanfang Chen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 18 19:05:28 PST 2018
tabloid.adroit created this revision.
tabloid.adroit added reviewers: craig.topper, evstupac.
Herald added a subscriber: llvm-commits.
Existing LIR recognizes CTLZ where shifting input variable right until
it is zero. (Shift-Until-Zero idiom)
This commit:
1. Augments Shift-Until-Zero idiom to recognize CTTZ where input
variable is shifted left.
2. Prepare for BitScan idiom recognition.
Repository:
rL LLVM
https://reviews.llvm.org/D55876
Files:
lib/Transforms/Scalar/LoopIdiomRecognize.cpp
test/Transforms/LoopIdiom/X86/cttz.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D55876.178830.patch
Type: text/x-patch
Size: 14851 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181219/750f8273/attachment.bin>
More information about the llvm-commits
mailing list