Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[InstCombine] drop poison flags when simplifying 'shl' based on deman…
…ded bits As with other transforms in demanded bits, we must be careful not to wrongly propagate nsw/nuw if we are reducing values leading up to the shift. This bug was introduced with 1b24f35 and leads to the miscompile shown in: https://llvm.org/PR50341
- Loading branch information
1 parent
339d0c1
commit e82db87
Showing
2 changed files
with
5 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters