Issue 160217
Summary [X86] Using (SUB32ri GR32:$src1, -128) for (add X, 128) incorrectly preserves NUW flag
Labels new issue
Assignees
Reporter topperc
    If the ADD instruction has an NUW flag, it is incorrectly copied into the MIR SUB instructions. If any MIR transforms use this flag, they may get incorrect information.

There are many such patterns like this with the same issue.

CC: @rksimon @phoebewang @arsenm 
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to