[all-commits] [llvm/llvm-project] 747c6a: [SDAG] fix miscompile when casting int->FP->int
Sanjay Patel via All-commits
all-commits at lists.llvm.org
Mon May 2 11:57:41 PDT 2022
Author: Sanjay Patel <spatel at rotateright.com>
Date: 2022-05-02 (Mon, 02 May 2022)
[SDAG] fix miscompile when casting int->FP->int
This is the codegen equivalent of D124692.
As shown in https://github.com/llvm/llvm-project/issues/55150 -
the existing fold may be wrong when converting to a signed value.
This is a quick fix to avoid the miscompile.
Differential Revision: https://reviews.llvm.org/D124771
More information about the All-commits