Skip to content

Conversation

@1997alireza
Copy link
Contributor

@1997alireza 1997alireza commented Oct 16, 2025

When NSW flag is present, SCEV simplifies sext((A * B * ...)<nsw>) to (sext(A) * sext(B) * ...)<nsw>.

When NSW flag is present, SCEV simplifies sext((A * B * ...)<nsw>) to
(sext(A) * sext(B) * ...)<nsw>.
@1997alireza
Copy link
Contributor Author

Currently, a couple of test cases are failed after this change and need to be fixed.

  LLVM :: CodeGen/X86/avx512vnni-combine.ll
  LLVM :: CodeGen/X86/avxvnni-combine.ll
  LLVM :: Transforms/IndVarSimplify/add-nsw-zext-fold.ll
  LLVM :: Transforms/LoopStrengthReduce/X86/pr47776-do-not-apply-info-from-guards-to-addrecs.ll
  LLVM :: Transforms/LoopUnroll/runtime-loop-multiple-exits.ll```

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant