[PATCH] D63004: [TargetLowering] Simplify (ctpop x) == 1
Simon Pilgrim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 7 06:55:21 PDT 2019
RKSimon added inline comments.
================
Comment at: test/CodeGen/X86/ctpop-combine.ll:3
+; RUN: llc < %s -mtriple=x86_64-unknown -mcpu=corei7 -mattr=+popcnt | FileCheck %s
+; RUN: llc < %s -mtriple=x86_64-unknown -mcpu=corei7 -mattr=-popcnt | FileCheck %s -check-prefix=NO-POPCOUNT
----------------
Enable common codegen, plus please can you commit this to trunk with current codegen and rebase so the patch shows the diff.
Also, do we need corei7 if we're explicitly setting/clearing the popcnt attribute?
```
; RUN: llc < %s -mtriple=x86_64-unknown -mcpu=corei7 -mattr=+popcnt | FileCheck %s -check-prefixes=CHECK,POPCOUNT
; RUN: llc < %s -mtriple=x86_64-unknown -mcpu=corei7 -mattr=-popcnt | FileCheck %s -check-prefixes=CHECK,NO-POPCOUNT
```
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D63004/new/
https://reviews.llvm.org/D63004
More information about the llvm-commits
mailing list