[all-commits] [llvm/llvm-project] 58dda0: [X86] Add ((z & m) >> s) - (x + y)) sub -> sbb tes...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Mon Mar 21 08:58:11 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 58dda03f7c1c1419575b5e1a995d620efa3eedfe
      https://github.com/llvm/llvm-project/commit/58dda03f7c1c1419575b5e1a995d620efa3eedfe
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2022-03-21 (Mon, 21 Mar 2022)

  Changed paths:
    M llvm/test/CodeGen/X86/add-sub-bool.ll

  Log Message:
  -----------
  [X86] Add ((z & m) >> s) - (x + y)) sub -> sbb test case

Another variant based off the PR35908 test cases


  Commit: b6e2832fc24590e1ecaf7e1a994e9b4378578c18
      https://github.com/llvm/llvm-project/commit/b6e2832fc24590e1ecaf7e1a994e9b4378578c18
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2022-03-21 (Mon, 21 Mar 2022)

  Changed paths:
    M llvm/lib/Target/X86/X86ISelLowering.cpp
    M llvm/test/CodeGen/X86/add-sub-bool.ll

  Log Message:
  -----------
  [X86] Don't fold SUB(X,SBB(0,0,W)) -> SUB(ADC(0,0,W),Y)

This will further fold to a AND(SETCC_CARRY(),1) pattern which tends to prevent further folds.


Compare: https://github.com/llvm/llvm-project/compare/35b73917c2f1...b6e2832fc245


More information about the All-commits mailing list