[PATCH] D102673: [ConstantFolding] Fold constrained arithmetic intrinsics
Serge Pavlov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 1 03:35:30 PDT 2021
sepavloff added inline comments.
================
Comment at: llvm/lib/Transforms/Utils/Local.cpp:497
+ return true;
+ }
+
----------------
kpn wrote:
> What about "maytrap"? The language reference explicitly calls out constant folding as allowed under "maytrap" since it doesn't introduce any new exceptions.
I think you are right. According to the documentation, constant folding is possible in this case.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D102673/new/
https://reviews.llvm.org/D102673
More information about the llvm-commits
mailing list