[PATCH] D149383: [SelectionDAG][WIP] Add support for evaluating SetCC based on knownbits
Simon Pilgrim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 17 06:41:12 PDT 2023
RKSimon added inline comments.
================
Comment at: llvm/test/CodeGen/X86/fold-rmw-ops.ll:1372
store i64 %or, ptr @g64
%cond = icmp eq i64 %or, 0
br i1 %cond, label %a, label %b
----------------
goldstein.w.n wrote:
> RKSimon wrote:
> > comparing against zero in all these or-with-imm tests just seems to be a copy+paste from the other logic ops in this file - maybe change it to something that isn't constant foldable (test for -ve?)
> re: 'test for -ve?' hmm?
>
> But would generally prefer to add new tests than modify existing.
'test for -ve' === 'test for negative'
Adding additional tests would be fine.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D149383/new/
https://reviews.llvm.org/D149383
More information about the llvm-commits
mailing list