[PATCH] D38421: Eliminate ftrunc if source is know to be rounded
Hal Finkel via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 29 13:10:29 PDT 2017
hfinkel added inline comments.
================
Comment at: lib/CodeGen/SelectionDAG/DAGCombiner.cpp:10705
+ // fold ftrunc (known rounded int x) -> x
+ switch (N0.getOpcode()) {
----------------
Is there any way we can generalize this? All of the operations listed here are like ftrunc in this regard (they're idempotent for integer inputs).
https://reviews.llvm.org/D38421
More information about the llvm-commits
mailing list