[all-commits] [llvm/llvm-project] 420cf6: [ConstraintElimination] Refactor `checkAndReplaceC...
Antonio Frighetto via All-commits
all-commits at lists.llvm.org
Mon Jun 5 07:55:25 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 420cf63ead105d024f0dd0e90b67a7ffb1fd64fb
https://github.com/llvm/llvm-project/commit/420cf63ead105d024f0dd0e90b67a7ffb1fd64fb
Author: Antonio Frighetto <me at antoniofrighetto.com>
Date: 2023-06-05 (Mon, 05 Jun 2023)
Changed paths:
M llvm/lib/Transforms/Scalar/ConstraintElimination.cpp
M llvm/test/Transforms/ConstraintElimination/debug.ll
Log Message:
-----------
[ConstraintElimination] Refactor `checkAndReplaceCondition` (NFC)
Handling `true` and `false` constant replacements is now abstracted
out into a single lambda function `ReplaceCmpWithConstant`, so as to
reduce code duplication.
More information about the All-commits
mailing list