[PATCH] D132989: [InstCombine] fold 1 - X == X to false
Sanjay Patel via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 31 08:00:38 PDT 2022
spatel added a comment.
Move this to InstSimplify rather than InstCombine. It should handle both equality preds at least (eq and ne). You should not create a fake instruction - create the expected constant directly.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D132989/new/
https://reviews.llvm.org/D132989
More information about the llvm-commits
mailing list