[PATCH] D92270: [ConstantFold] Fold more operations to poison

Matthias Braun via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 26 14:01:14 PDT 2021


MatzeB added inline comments.


================
Comment at: llvm/lib/IR/ConstantFold.cpp:633
         // the input constant.
-        return UndefValue::get(DestTy);
+        return PoisonValue::get(DestTy);
       }
----------------
I believe this is causing some of our clients trouble, especially since we somehow have a `-fno-strict-float-cast-overflow` flag in clang that says float->int overflows are not UB... (CC @spatel )


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D92270/new/

https://reviews.llvm.org/D92270



More information about the llvm-commits mailing list