[all-commits] [llvm/llvm-project] f42d92: [Reassociate] Avoid ConstantExpr::getFNeg() (NFCI)
Nikita Popov via All-commits
all-commits at lists.llvm.org
Wed Sep 7 01:48:26 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f42d92611da60f3613af3ad4e84670380cb7d67d
https://github.com/llvm/llvm-project/commit/f42d92611da60f3613af3ad4e84670380cb7d67d
Author: Nikita Popov <npopov at redhat.com>
Date: 2022-09-07 (Wed, 07 Sep 2022)
Changed paths:
M llvm/lib/Transforms/Scalar/Reassociate.cpp
Log Message:
-----------
[Reassociate] Avoid ConstantExpr::getFNeg() (NFCI)
Use ConstantFoldUnaryOpOperand() instead. Also make the code below
robust against non-instruction users, just in case it doesn't fold.
More information about the All-commits
mailing list