[all-commits] [llvm/llvm-project] 288c57: [X86] Use inlineasm flag output for the _bittest* ...
topperc via All-commits
all-commits at lists.llvm.org
Mon Sep 28 13:34:37 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 288c5776c9d3cb14abe1c86f961c8ff166772d28
https://github.com/llvm/llvm-project/commit/288c5776c9d3cb14abe1c86f961c8ff166772d28
Author: Craig Topper <craig.topper at intel.com>
Date: 2020-09-28 (Mon, 28 Sep 2020)
Changed paths:
M clang/lib/CodeGen/CGBuiltin.cpp
M clang/test/CodeGen/bittest-intrin.c
A llvm/test/CodeGen/X86/bittest-intrin.ll
Log Message:
-----------
[X86] Use inlineasm flag output for the _bittest* intrinsics.
Instead of expliciting emitting a setc in the inline asm instructions,
we can use flag output. This allows the backend to use the flag
directly if it is needed by a branch. Previously we needed a test
instruction to convert the register back to a flag.
If the flag can't be used directly, the backend will emit a setcc.
Differential Revision: https://reviews.llvm.org/D87888
More information about the All-commits
mailing list