Introduce a lambda function so that we remove a lot of code
duplication.
Details
Details
Diff Detail
Diff Detail
Unit Tests
Unit Tests
Event Timeline
Comment Actions
LGTM - thanks!
Note that we likely have FMF propagation bugs in this code based on discussion/examples in D127275. If you can put a TODO comment on this, that would be helpful. We'll probably need to add more tests with mixed FMF to demonstrate the bugs.
llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp | ||
---|---|---|
442 | Changing only the capitalization of the enclosing function surprised me (and it doesn't seem like there's consensus on capitalization for lambda names). "TryFoldSelectIntoOp" ? |
Changing only the capitalization of the enclosing function surprised me (and it doesn't seem like there's consensus on capitalization for lambda names).
"TryFoldSelectIntoOp" ?